Re: [R] USA map with all states

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Wed, 02 Jan 2008 20:49:50 +1100

Edna Bell wrote:
> Hi R Gurus!
>
> There was a function in S called "usa()" which would plot the US.
>
> I found map('usa') in R for the lower 48 states. Is there a way to
> include Alaska and Hawaii as well, please?
>
Hi Edna,
This is not a great plot, but it sort of does what you want.

library(maps)
data(worldMapEnv)
data(stateMapEnv)
layout(matrix(c(1,2),ncol=2),widths=c(1,3)) map("world",xlim=c(-170,-140),ylim=c(10,80)) map("state")

Jim



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. Received on Wed 02 Jan 2008 - 09:49:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Jan 2008 - 11:30:04 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive