[R] Plotting several series on one set of axes

Marc Schwartz MSchwartz at MedAnalytics.com
Wed Mar 9 14:30:12 CET 2005


On Wed, 2005-03-09 at 11:21 +0000, midnightsun at 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




More information about the R-help mailing list