[R-sig-Geo] Coerce spatialPolygons to spatialLines

Anthony Fischbach afischbach at usgs.gov
Wed Sep 14 23:36:13 CEST 2011


I am producing plots of spatialPolygons over a spatialPixelDataFrame
and wish to convert the spatialPolygons object to a spatialLines object
as a work around of two plotting problems.

Problem 1: Donut holes in the polygons are plotting as white, 
rather than as a null color that would allow the spatialPixelDataFrame
object's colors to show through.

Problem 2: I wish to set the polygon outline color so that it better
contrasts with the color ramp of the spatialPixelDataFrame object plot.


-----
Tony Fischbach, Wildlife Biologist
Walrus Research Program
Alaska Science Center
U.S. Geological Survey
4210 University Drive
Anchorage, AK 99508-4650

AFischbach at usgs.gov
http://alaska.usgs.gov/science/biology/walrus
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Coerce-spatialPolygons-to-spatialLines-tp6794570p6794570.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list