[R] alpha parameter in function rgb to specify color
Jun Ding
dingjun_cn at yahoo.com
Thu Mar 8 05:47:25 CET 2007
Hi All,
In function "rgb", alpha parameter is supposed to set
the transparency value. But in my following two
examples, it didn't work:
plot(1,col = rgb(1,0,0,alpha =0.8))
# as long as alpha < 1, there is no point in the plot.
plot(1,col = rgb(0,0,255, alpha=254,
maxColorValue=255))
# as long as alpha < 255, there is no point in the
plot.
Do I use it in the right way? Any advice is
appreciated.
Best,
Jun Ding
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check.
More information about the R-help
mailing list