Re: [R] How to draw a transparent polygon

2014-05-21 Thread Bert Gunter
>>> x <- runif(10)*10 >> >>> y <- runif(10)*10 >> >>> plot(x, y, pch=16) >> >>> col2rgb("red", alpha=TRUE) >> >> [,1] >> >> red255 >> >> green0 >> >> blue 0 >>

Re: [R] How to draw a transparent polygon

2014-05-21 Thread Boris Steipe
s <- rgb(255, 0, 0, 127, maxColorValue=255) > >>> polygon(c(2, 5, 8), c(2, 10, 2), col=redtrans) > >> > >> - > >> David L Carlson > >> Department of Anthropology > >> Texas A&M University > >>

Re: [R] How to draw a transparent polygon

2014-05-21 Thread Jun Shen
(2, 10, 2), col=redtrans) > >> > >> ------------- > >> David L Carlson > >> Department of Anthropology > >> Texas A&M University > >> College Station, TX 77840-4352 > >> > >> > >> > >>

Re: [R] How to draw a transparent polygon

2014-05-21 Thread Boris Steipe
- >> David L Carlson >> Department of Anthropology >> Texas A&M University >> College Station, TX 77840-4352 >> >> >> >> >> >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r

Re: [R] How to draw a transparent polygon

2014-05-21 Thread William Dunlap
ssage- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Jun Shen > Sent: Wednesday, May 21, 2014 10:32 AM > To: R-help > Subject: [R] How to draw a transparent polygon > > Hi everyone, > > How do I draw a transparent ploygo

Re: [R] How to draw a transparent polygon

2014-05-21 Thread David L Carlson
;M University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Jun Shen Sent: Wednesday, May 21, 2014 10:32 AM To: R-help Subject: [R] How to draw a transparent polygon Hi everyone, How do I draw a transp

[R] How to draw a transparent polygon

2014-05-21 Thread Jun Shen
Hi everyone, How do I draw a transparent ploygon overlaying with a scatter plot? Let's say, we call plot() to have a scatter plot, then call polygon() to add a polygon. I was hoping the polygon can be transparent so the scatter plot is still visible. I can't find any argument in polygon() for suc