I have been experiencing some slight aggrivation working with the image
plots for gene expression data with S-Plus. I was wondering if anyone has
reworked the image function to allow color choices within the function? I
know you can do it through the gui or using graphsheet() but it seems like
there should be an easier way.
This was just a minor question though. My real question comes with setting
specific values to specific colors. For example, using expression data you
will have a square matrix with values ranging from positive to negative
(positive is typically red, green is negative). As you go toward zero the
color should converge to black. Let us say the expression values range
from -4 to 3, it would be nice if I could type the following:
image(matrix, col.points = c(-3,0,3), cols = c(4,1,3))
This would result in subset symetrical shading with values at -3 being
completly green, 0 would be completely black,and 3 would be completly red.
Finally, colors with values <= -3 whould be completely green.
It would be even better if "col.points" and "col" could be a vector of any
length.
Thanks for all your help!
Josh
|