[R-sig-Geo] make polygons transparent in plotKML

MacQueen, Don macqueen1 at llnl.gov
Thu Apr 18 21:19:24 CEST 2013


Just a pointer to hopefully get you started:

see ?col2rgb and look at the alpha parameter.

-Don

-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062





On 4/18/13 9:03 AM, "Seth Bigelow" <seth at swbigelow.net> wrote:

>Greetings: 
>
> 
>
>Could anyone advise me how to make transparent polygons in plotKML? I am
>overlaying polygons in a SpatialPolygonsDataFrame object into Google
>Earth -
>Seems I can make the polygons any color (e.g., yellow - see example)
>except
>transparent
>
> 
>
>plotKML(mySPDF, colour_scale ="#FFFF00")
>
> 
>
>Appreciately, Seth Bigelow
>
>
>	[[alternative HTML version deleted]]
>
>_______________________________________________
>R-sig-Geo mailing list
>R-sig-Geo at r-project.org
>https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list