[R] postscript colors

Thomas Lumley thomas at biostat.washington.edu
Wed Nov 24 00:35:32 CET 1999


On Tue, 23 Nov 1999, Denis White wrote:

> Is color specification like this available in R for setting
> postscript colors?
> 
> > hue <- c(0, seq(from = 0, by = 1/(nclass), length = nclass))
> > sat <- c(0, rep(1.0, nclass))
> > bri <- c(0, rep(1.0, nclass))
> > zcolors <- cbind(hue, sat, bri)
> > ps.options (setcolor=ps.setcolor.hsb,colors=zcolors)

No, but it's not necessary. You can use the color names 
	plot(x,y,color="PeachPuff")
or print from the x11() screen with dev.print() and the colors will come
out right


	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list