[R] Lattice plots of the form xyplot(y1+y2~x)

2006-11-17 Thread Ross Darnell
I would appreciate help trying to set different plot types in a lattice plot with multiple responses e.g. xyplot(y+fval~x) but have y as points and fval as a line. I have tried xyplot(y+fval~x,type=c(p,l)) but this results in both plots having both types. Thanks Ross Darnell University of

Re: [R] Lattice plots of the form xyplot(y1+y2~x)

2006-11-17 Thread Gabor Grothendieck
Use distribute.type = TRUE or panel = panel.superpose.2. as an argument to xyuplot. e.g. Using the builtin anscombe data set: xyplot(y1 + y2 ~ x1, anscombe, type = c(p, l), distribute.type = TRUE) # same xyplot(y1 + y2 ~ x1, anscombe, type = c(p, l), panel = panel.superpose.2) On