Which graphics device are you using?
________________________________
From: r-help-bounces@stat.math.ethz.ch on behalf of Jun Ding
Sent: Wed 3/7/2007 9:47 PM
To: r-help@stat.math.ethz.ch
Subject: [R] alpha parameter in function rgb to specify color
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.
______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]