Scaling SpatialPolygons
Mike, You can create a small inside (negative) buffer using rgeos and use that. Robert
On Wed, Jul 17, 2013 at 9:17 AM, Rizzo, Michael <Rizzo.Michael at epa.gov> wrote:
I have a group of counties in a SpatialPolygonsDataFrame and would like to know if a function exists to scale them. Many of the counties share a common border, and I want to color each county's border differently to distinguish them by individual categories. The problem is the border colors overlap for adjacent counties. I thought if I could scale the individual polygons down to 95% of their original size, the boundaries of adjacent counties would appear side by side without the overlap.
I created my own function to do this but concave polygons don't scale 100% correctly and still overlap each other a little so I am hoping there may be a pre-defined function that would scale the county polygons correctly.
Thank you,
Mike Rizzo
[[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