Hi,

Also, see maptools::elide which gives some functions for that.

You could take some material from this git if you want:
https://gist.github.com/datagistips/5262410#file-cartograms-r

with 2 functions: one using buffer, another one using elide

best,

mathieu


2013/7/17 Rizzo, Michael <Rizzo.Michael@epa.gov>

> Robert,
> Thank you!  That did exactly what I needed.
>
> Mike Rizzo
>
> -----Original Message-----
> From: Robert J. Hijmans [mailto:r.hijmans@gmail.com]
> Sent: Wednesday, July 17, 2013 12:01 PM
> To: Rizzo, Michael
> Cc: r-sig-geo@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@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@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

