Message-ID: <1353017350774-7581727.post@n2.nabble.com>
Date: 2012-11-15T22:09:10Z
From: peleve
Subject: Clearing the area outside of a polygon defined on a grid.
In-Reply-To: <CANtt_hyMjVVjYaTXwVL2GY8MML4T1nmh1cSBV0ZSF_tuYREG4w@mail.gmail.com>
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.