Re: [R] maps and lattice

2008-02-06 Thread Paul Hiemstra
Hi, I use the spplot function from the sp package, it uses lattice to make spatial plots. The sp-package provides spatial classes for R. See http://r-spatial.sourceforge.net/ for more information on the use of spatial data in R, http://r-spatial.sourceforge.net/gallery/ gives a gallery of spat

Re: [R] maps and lattice

2008-02-05 Thread Sundar Dorai-Raj
Jon Loehrke said the following on 2/5/2008 2:29 PM: > Is it possible to place maps onto lattice plots? > > With basic plotting you can add a map to a plot > > library(lattice) > long<-c(-69.2, -69.5, -70.1, -70.3) > lat<-c(41, 41.5, 43.2, 42.8) > plot(long, lat) > map('state', c("massachusetts")

[R] maps and lattice

2008-02-05 Thread Jon Loehrke
Is it possible to place maps onto lattice plots? With basic plotting you can add a map to a plot library(lattice) long<-c(-69.2, -69.5, -70.1, -70.3) lat<-c(41, 41.5, 43.2, 42.8) plot(long, lat) map('state', c("massachusetts"),add=TRUE) but is it possible with lattice? library(lattice) factor<