also, can you point me to some example of how to omit colors from a palette
--
View this message in context:
http://n4.nabble.com/heatmap-2-color-range-tp1293498p1311031.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project
thanks,
I think I got the color ranges down, however, I just realized that the
colors don't match the data. When I execute:
grad <- ifelse(randMat > 5,yelPal,ifelse(randMat<1.5,redPal,bluPal))
the grad matrix contains the correct hex codes corresponding to the randMat
data matrix but when I
as a followup, I tried using the rainbow function to create the gradients but
is there a way to do a "reverse" rainbow, ie. normally if I do:
pie(rep(1,6), col=rainbow(6,start=0, end=.07))
I'll get a gradient from dark red to orangish but what if I want it to go
the other way
thanks
--
View t
evgeny55 wrote:
>
> I'm trying to create a heatmap with color ranges for different values in
> my matrix. For example:
> If x > 5 , use orange gradient
> if x < 1.5, use red gradient
> .
>
> Right now I have the following:
> orgPal<-brewer.pal(3,"Oranges")
> bluPal<-brewer.pal(3,"Blues")
Hi,
I'm trying to create a heatmap with color ranges for different values in my
matrix. For example:
If x > 5 , use orange gradient
if x < 1.5, use red gradient
.
Right now I have the following:
orgPal<-brewer.pal(3,"Oranges")
bluPal<-brewer.pal(3,"Blues")
redPal<-brewer.pal(3,"Reds")
grad
5 matches
Mail list logo