[R] alpha parameter in function rgb to specify color

Jun Ding dingjun_cn at yahoo.com
Thu Mar 8 07:00:02 CET 2007


Hi Greg, 

I am not sure if I understand you correctly. 
I am using the "plot" command directly in R Console in
the windows version of R and I also have tried it in
the linux version of R. 

Thanks a lot for your help!

Best,
Jun

--- Greg Snow <Greg.Snow at intermountainmail.org> wrote:

> Which graphics device are you using?
> 
> ________________________________
> 
> From: r-help-bounces at stat.math.ethz.ch on behalf of
> Jun Ding
> Sent: Wed 3/7/2007 9:47 PM
> To: r-help at 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 at 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.
> 
> 
> 



 
____________________________________________________________________________________
Don't pick lemons.



More information about the R-help mailing list