>>> x <- runif(10)*10
>> >>> y <- runif(10)*10
>> >>> plot(x, y, pch=16)
>> >>> col2rgb("red", alpha=TRUE)
>> >> [,1]
>> >> red255
>> >> green0
>> >> blue 0
>>
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
> >>
(2, 10, 2), col=redtrans)
> >>
> >> -------------
> >> David L Carlson
> >> Department of Anthropology
> >> Texas A&M University
> >> College Station, TX 77840-4352
> >>
> >>
> >>
> >>
-
>> 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
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
;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
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
7 matches
Mail list logo