Re: [R] Overlapping plot in lattice

2011-10-02 Thread Kang Min
Thanks Gabor, that was exactly what I needed. On Sep 30, 9:00 pm, Gabor Grothendieck wrote: > On Fri, Sep 30, 2011 at 3:01 AM, Kang Min wrote: > > Hi all, > > > I was wondering if there's an equivalent to par(new=T) of the plot > > function in lattice. I'm plotting an xyplot, and I would like to

Re: [R] Overlapping plot in lattice

2011-09-30 Thread Gabor Grothendieck
On Fri, Sep 30, 2011 at 3:01 AM, Kang Min wrote: > Hi all, > > I was wondering if there's an equivalent to par(new=T) of the plot > function in lattice. I'm plotting an xyplot, and I would like to > highlight one point by plotting that one point again using a different > symbol. > > For example, w

Re: [R] Overlapping plot in lattice

2011-09-30 Thread Dennis Murphy
Hi: One way is to create a vector of pch values that you can pass into xyplot, e.g., dd <- data.frame(x = 1:10, y = 1:10, pch = c(rep(1, 5), 16, rep(1, 4))) library('lattice') xyplot(y ~ x, data = dd, pch = dd$pch, col = 1) HTH, Dennis On Fri, Sep 30, 2011 at 12:01 AM, Kang Min wrote: > Hi all

[R] Overlapping plot in lattice

2011-09-30 Thread Kang Min
Hi all, I was wondering if there's an equivalent to par(new=T) of the plot function in lattice. I'm plotting an xyplot, and I would like to highlight one point by plotting that one point again using a different symbol. For example, where 6 is highlighted: plot(1:10, xlim=c(0,10), ylim=c(0,10)) pa