[R] Help on PLotting

Deepayan Sarkar deepayan at stat.wisc.edu
Tue May 13 20:59:42 CEST 2003


See ?matplot. Alternatively, using xyplot from the lattice package,

xyplot(y + z ~ x, allow.m = TRUE)

On Tuesday 13 May 2003 13:21, Sangeeta Pratap wrote:
> We were wondering if there was a simple way to plot two series, say y and
> z, against a series x and have both series appear in the same plot.
>
> For example the function plot(x~y+z) generates two scatter plots, one with
> y against x and the other with z against x. Is there any way to obtain
> both on the same picture?
>
> Thanks for your help
>
> Sangeeta




More information about the R-help mailing list