Re: [R] Gray levels

2012-01-25 Thread baptiste auguie
The scales package? gradient_n_pal(c("red","white","blue"), c(0,0.5,1)) (seq(0,1,length=100)) HTH, baptiste On 26 January 2012 10:36, Jeffrey Joh wrote: > > The gray (level) function returns different shades of gray, where level is a > vector of numbers ranging from 0 to 1.  0 is white and 1

Re: [R] Gray levels

2012-01-25 Thread Sarah Goslee
Besides the package already recommended, the rainbow() function in base R has rudimentary capabilities of that type. Sarah On Jan 25, 2012 4:38 PM, "Jeffrey Joh" wrote: > > The gray (level) function returns different shades of gray, where level is > a vector of numbers ranging from 0 to 1. 0 is

Re: [R] Gray levels

2012-01-25 Thread Peter Alspach
Tena koe See the colorspace package. HTH Peter Alspach -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Jeffrey Joh Sent: Thursday, 26 January 2012 10:36 a.m. To: r-help@r-project.org Subject: [R] Gray levels The gray

[R] Gray levels

2012-01-25 Thread Jeffrey Joh
The gray (level) function returns different shades of gray, where level is a vector of numbers ranging from 0 to 1.  0 is white and 1 is black and everything in between is a shade of gray. Is there a function that will let me choose two different colors?  For example, a 0 might be blue and 1 m