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

______________________________________________
[email protected] 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.

Reply via email to