Re: [R] calling map() in xyplot()

2010-03-10 Thread Gurmeet
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 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 >

Re: [R] calling map() in xyplot()

2010-03-09 Thread David Winsemius
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 nea

Re: [R] calling map() in xyplot()

2010-03-09 Thread Felix Andrews
It seems to draw some islands... looks OK to me... what exactly is the problem? Note, you probably want to specify aspect="iso" On 10 March 2010 14:42, Gurmeet wrote: > Hi All, > > I'm trying to add a map on the following lattice plot, but not correctly... > can anyone help please... > > R Cod

[R] calling map() in xyplot()

2010-03-09 Thread Gurmeet
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) Depth <- equal.count(quakes$depth, number=8, overlap=.1) xyplot(lat ~ long | Depth, data = quakes, panel = function(..