On Mar 9, 2010, at 10:42 PM, Gurmeet wrote:

Hi All,

I'm trying to add a map on the following lattice plot, but not correctly...
can anyone help please...

R Code:

require(lattice)
us.map <- map(plot = FALSE, fill = TRUE)

Maybe you should explain why you think plotting quake locations near Fiji might show up on a map of the united States?

Depth <- equal.count(quakes$depth, number=8, overlap=.1)
xyplot(lat ~ long | Depth, data = quakes,
 panel = function(...) {
   panel.polygon(us.map$x,us.map$y)
   panel.xyplot(...)
 }
)

Any help would be greatly appreciated,
Gurmeet

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@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.

Reply via email to