Clearing the area outside of a polygon defined on a grid.
Thanks Robert, I was able to do it with the following using the 'gpclib" package: p2 <- as(xy, "gpc.poly") p1 <- as(maparea, "gpc.poly") plot(setdiff(p1, p2), poly.args = list(col = 3), add = TRUE) Did exactly what I was looking for. Pretty simple, actually. Thanks for inspiring me. Pete -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Clearing-the-area-outside-of-a-polygon-defined-on-a-grid-tp7581718p7581727.html Sent from the R-sig-geo mailing list archive at Nabble.com.