[R] Hawaii in map() function

Christophe Declercq cdeclercq at nordnet.fr
Sun Sep 5 22:02:41 CEST 2004


> From: "Michelle Bell" <michelle.bell at yale.edu>
> To: <r-help at stat.math.ethz.ch>
> Sent: Sunday, September 05, 2004 9:08 PM
> Subject: [R] Hawaii in map() function


> I would like to use the map function for the continental US plus Hawaii, 
> but can only find the library files for the continental US. Suggestions?

You can find Hawaii in the world map database

You could try:

> library(map)
> map("world", c("USA", "Hawaii"))
 
which has perhaps more than what you want, or try something like:

> map("usa", xlim=c(-170,-60), ylim=c(15,55))
> map("world", "Hawaii", add=TRUE)

Christophe




More information about the R-help mailing list