Answer: Color Question about image function in graphics package
please have a look a the manual page for image (access from R by
"?image" ). You can specify which colors to use and at which values to
switch colors using the arguments breaks and colors. For example:
basically says: display every cell with a value below 20 in red
(breaks[1:2] specify the interval for "red") and every value above 20
(breaks[2:3] specify the interval for "blue").
> Dear Lists:
> I had a matrix which has lrt score for my microarray data. I just
> how to visualize them with score over 20 in particular color such as
> I cannot understand the color relationship with the value in z
> example, If I see a red color in my image generated by image
> don't know what is the value of z in that spot.
> aaa <- matrix(rnorm(36),4,9)
> Can I paint the cells at which their values are higher than a
> in image()?
> Or I have to use some other functions,
> [[alternative HTML version deleted]]
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> Search the archives: