Skip to content
Prev 313474 / 398503 Next

Multiple palettes on single plot don't get rendered when I use dev.copy2pdf

On 12/12/2012 09:10, peter dalgaard wrote:
I believe it is by design.  palette() is part of package grDevices, and 
you should think of the palette as a per-session setting.  (It is stored 
in R itself, not on the device and not in package grDevices.)

So plots are plotted using the last palette set in that R session, 
including being re-plotted.