Colours are connected to the graphic
device rather than the image function.
This is a script that allows you to tweak
the colour range in the image plot
graphsheet(num.image.colors=3,num.image.shades="5,5",image.color.table="122,100,159|244,236,90|0,0,0")
# RGB value specification
image(matrix(rnorm(10000),50))
I believe a similar has already appeared
in the list so always check the S archives
Dimitrios
From:
s-news-owner@lists.biostat.wustl.edu
[mailto:s-news-owner@lists.biostat.wustl.edu] On
Behalf Of Xao Ping
Sent: 28 November 2007 00:09
To: s-plus user list
Subject: [S] image in different
versions of S-PLUS
Long ago, I have developed a nice program for color depiction of
matrices of certain type, i.e., z[i,j], using "image". The
values of z are integers 0:6. In the versions preceding the S-PLUS 6, it used
to be a very bright good looking picture with seven very distinctive
colors. In S-PLUS 6.2 it turned out to be a pretty dull but still color
picture. In the S-PLUS 7, I have only gray scales of dark blue but no
colors. I haven't found any set-up function for assigning colors to
"image". Can anybody please help with solving the problem.
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See
how.