[R] map("state" ...) Is the USA cracking up?

John Kane jrkrideau at yahoo.ca
Sat Aug 16 17:18:58 CEST 2008


Check your tectonic plates.  You may have been using predict() to get those figures.


--- On Fri, 8/15/08, John P. Burkett <burkett at uri.edu> wrote:

> From: John P. Burkett <burkett at uri.edu>
> Subject: Re: [R] map("state" ...)     Is the USA cracking up?
> To: R-help at r-project.org
> Received: Friday, August 15, 2008, 4:26 PM
> The problem was solved by specifying resolution=0 in the
> map() function.
> Would that saving the union had always been so easy and
> bloodless.
> -John
> 
> John P. Burkett wrote:
> > Running R version 2.6.1 under Linux, I'm trying to
> use the maps and 
> > mapdata packages and the state database to produce a
> thematic map of the 
> > USA.  My problem is that cracks (white spaces) appear
> between some 
> > states--e.g. between Colorado and Utah and between
> Michigan and Indiana. 
> > The resulting visual impression is that the country is
> breaking up. This 
> > occurs in all the projections I have tried: albers,
> mercator, 
> > sinusoidal.  An example of a command producing this
> effect is the 
> > following:
> > map("state", regions=names48,
> projection="albers", par=c(36, 53), 
> > fill=T, col=rgb(red, green, blue, maxColorValue=255))
> > Suggests for filling the cracks would be very welcome.
> > -John
> > 
> 
> 
> -- 
> John P. Burkett
> Department of Environmental and Natural Resource Economics
> and Department of Economics
> University of Rhode Island
> Kingston, RI 02881-0808
> USA
> 
> phone (401) 874-9195
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.



More information about the R-help mailing list