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" <johjeff...@hotmail.com> 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 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 might be red and in between might be a mix. > > Jeffrey > > ______________________________________________ > 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. > [[alternative HTML version deleted]] ______________________________________________ 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.