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 happens if you just resize the the screen device. Seems like palette changes are not recorded in the display list. Not sure whether that is by omission or by design. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd....@cbs.dk Priv: pda...@gmail.com ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.