Re: [R] Multiple palettes on single plot don't get rendered when I use dev.copy2pdf

2012-12-12 Thread Prof Brian Ripley
On 12/12/2012 09:10, peter dalgaard wrote: On Dec 12, 2012, at 01:48 , arun wrote: Hi, Try this: pdf("broke.pdf") palette(rainbow(6)) plot(x=x1,y=y1,col=y1,xlim=c(-10,20)) palette(heat.colors(6)) points(x=x2,y=y2,col=y2) dev.off() A.K. Yep. Notice though that this is not specific

Re: [R] Multiple palettes on single plot don't get rendered when I use dev.copy2pdf

2012-12-12 Thread peter dalgaard
On Dec 12, 2012, at 01:48 , arun wrote: > Hi, > Try this: > pdf("broke.pdf") > palette(rainbow(6)) > plot(x=x1,y=y1,col=y1,xlim=c(-10,20)) > palette(heat.colors(6)) > points(x=x2,y=y2,col=y2) > dev.off() > A.K. Yep. Notice though that this is not specific to dev.copy2pdf, the same effect

Re: [R] Multiple palettes on single plot don't get rendered when I use dev.copy2pdf

2012-12-11 Thread Andrew Crane-Droesch
is: pdf("broke.pdf") palette(rainbow(6)) plot(x=x1,y=y1,col=y1,xlim=c(-10,20)) palette(heat.colors(6)) points(x=x2,y=y2,col=y2) dev.off() A.K. - Original Message - From: Andrew Crane-Droesch To: R help Cc: Sent: Tuesday, December 11, 2012 7:17 PM Subject: [R] Multiple pal

Re: [R] Multiple palettes on single plot don't get rendered when I use dev.copy2pdf

2012-12-11 Thread arun
] Multiple palettes on single plot don't get rendered when I use dev.copy2pdf Hi All, I'm having trouble with the colors on my screen getting translated to the colors in the outputted .pdf document. Here is a caricature of my problem: par(mfrow=c(1,1)) x1 = rnorm(1000) x2 = rnorm

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

2012-12-11 Thread Andrew Crane-Droesch
Hi All, I'm having trouble with the colors on my screen getting translated to the colors in the outputted .pdf document. Here is a caricature of my problem: par(mfrow=c(1,1)) x1 = rnorm(1000) x2 = rnorm(1000)+10 y1 = rnorm(1000)+10 y2 = rnorm(1000)+10 palette(rainbow(6)) plot(x=x1,y=y1,col=y1