[R] ColorRamp different from ColorRampPalette

taw troy.wynn at aggiemail.usu.edu
Fri Mar 26 19:32:22 CET 2010


Try the rgb function in the grDevices library. 

pal.cr<-colorRamp( c("blue", "white", "red"), space = "rgb")
plot(rep(0,40),pch=16,col=rgb(pal.cr((0:40)/40),max=255))


Troy  
-- 
View this message in context: http://n4.nabble.com/ColorRamp-different-from-ColorRampPalette-tp889372p1692642.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list