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 11/17/06, Ross Darnell <[EMAIL PROTECTED]> wrote:
> 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 Queensland, AUSTRALIA
>
> __
> R-help@stat.math.ethz.ch 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.
>

__
R-help@stat.math.ethz.ch 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.


[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 Queensland, AUSTRALIA

__
R-help@stat.math.ethz.ch 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.