Re: [R] Plotting several series on one set of axes

From: Marc Schwartz <MSchwartz_at_medanalytics.com>
Date: Thu 10 Mar 2005 - 00:30:12 EST

On Wed, 2005-03-09 at 11:21 +0000, midnightsun@blueyonder.co.uk wrote:
> Dear All,
>
> I am rather rusty with my R, but I recall being able to do something like
> plot(x1,...);plot(x2,add=TRUE,...)
> to plot two series on the same axes.
>
> Any suggestions how this may be done will be appreciated.

If you have several series with common axes, you can use matplot() and do it with a single function call.

See ?matplot for more information.

HTH, Marc Schwartz



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 Received on Thu Mar 10 00:55:31 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:42 EST