s-news
[Top] [All Lists]

Graphsheet & Image.palette

To: s-news@lists.biostat.wustl.edu
Subject: Graphsheet & Image.palette
From: "Fowler, Mark" <FowlerM@mar.dfo-mpo.gc.ca>
Date: Fri, 23 May 2008 15:05:33 -0300
Thread-index: Aci8/5fv+xOJTusoSbqufu5TAcLaaA==
Thread-topic: Graphsheet & Image.palette

Hello,
        Seemed straightforward, but couldn't find the answer in the archives (S or R). I want to use a custom color scheme for plotting images (programmatically, not interactively), for example

graphsheet(num.image.colors = 3, num.image.shades = "50,50",
    image.color.table = "0,0,255|0,255,0|255,0,0")
image(xyzobj,zlim=c(0,30), na.rm=T)

        However the resulting graph just uses whatever color scheme exists in image.palette, and image.palette is unaffected by the graphsheet command. Anybody know how to accomplish this? Or maybe a way to derive an image.palette from graphsheet or graphsheet-style specifications (I dread using the names).

      Mark Fowler
      Population Ecology Division
      Bedford Inst of Oceanography
      Dept Fisheries & Oceans
      Dartmouth NS Canada
      B2Y 4A2
      Tel. (902) 426-3529
      Fax (902) 426-9710
      Email fowlerm@mar.dfo-mpo.gc.ca
      Home Tel. (902) 461-0708
      Home Email mark.fowler@ns.sympatico.ca


<Prev in Thread] Current Thread [Next in Thread>