[R] adjusting color palette

Don MacQueen macq at llnl.gov
Mon Jun 14 16:14:46 CEST 2004

See also


with which you can make your pallete be anything you want. The 
examples given there will point you to several pre-defined palletes. 
Perhaps one of them will do a better job for you than whatever you're 
trying now.

      rainbow(n, s = 1, v = 1, start = 0, end = max(1,n - 1)/n, gamma = 1)


At 1:08 PM +0100 6/14/04, Laura Quinn wrote:
>Is there a way to increase the "sensitivity" of the color palette in order
>to more clearly represent certain sections of data? For example I am
>wanting to clearly differentiate between height data for a rolling
>landscape but because of the extremes of the dataset (sea and mountain
>tops), the bulk of the landscape is shaded in closely approximating green
>- i have attempted to do this by using a larger color palette but this
>doesn't make things any clearer.
>R-help at stat.math.ethz.ch mailing list
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA

More information about the R-help mailing list