Skip to content
Back to formatted view

Raw Message

Message-ID: <644e1f320712031752k27ac3b14l9b5a4e6e075b799e@mail.gmail.com>
Date: 2007-12-04T01:52:58Z
From: jim holtman
Subject: color palette from red to blue passing white
In-Reply-To: <f22a33d30712031741i58c3b9a3hf4dd02e04e1bc4db@mail.gmail.com>

see if this is what you need:

require(lattice)
x <- matrix(1:100,10)
levelplot(x,col.regions=colorRampPalette(c('dark red','white','dark blue')))



On Dec 3, 2007 5:41 PM, Linda Smith <lsmithingm at gmail.com> wrote:
> Hi All,
>
> I am looking for a color palette like this:
> http://www.ncl.ucar.edu/Applications/Images/h_long_5_lg.png
>
> I think I found out how some time ago (something like Colors[1:n]), but when
> I now wanna use it, I could not remember how I did it.
>
> Does anyone know which package I could use?
>
> Many thanks!
>
> Linda
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?