[R] second y axis

Erin Hodgess hodgess at gator.uhd.edu
Wed Apr 28 02:18:04 CEST 2004


Dear R People:

Someone had asked about plotting 2 time series with the
same time component with different scales(y axes).

I had forgotten to save the question, but here is the answer:

> data(USeconomic)
> help(USeconomic)
> plot(M1)
> par(new=TRUE)
> plot(GNP,axes=F,xlab="",ylab="")
> axis(4)
> 

Hope this helps!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess at gator.uhd.edu




More information about the R-help mailing list