Thanks Felix and David. [Actually, don't go by variable name us.map, I was
using an example I found online...]

On Tue, Mar 9, 2010 at 11:43 PM, David Winsemius <dwinsemius@comcast.net>wrote:

>
> 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<http://www.r-project.org/posting-guide.html>
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
> David Winsemius, MD
> West Hartford, CT
>
>

	[[alternative HTML version deleted]]

