Skip to content
Back to formatted view

Raw Message

Message-ID: <016268a8540545c5a4a5de4b9a36a86d@BLUPR09MB040.namprd09.prod.outlook.com>
Date: 2013-07-17T17:25:51Z
From: Rizzo, Michael
Subject: Scaling SpatialPolygons
In-Reply-To: <CANtt_hzf5vm0UO6k0w=r4K4Rt+9uEnHT53+GKPjj3Wm1SvenWA@mail.gmail.com>

Robert,
Thank you!  That did exactly what I needed.

Mike Rizzo

-----Original Message-----
From: Robert J. Hijmans [mailto:r.hijmans at gmail.com] 
Sent: Wednesday, July 17, 2013 12:01 PM
To: Rizzo, Michael
Cc: r-sig-geo at r-project.org
Subject: Re: [R-sig-Geo] 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