[R] multiple time series plot with dual 'y' axes

Jim Lemon jim at bitwrit.com.au
Tue Jul 6 13:49:58 CEST 2010


On 07/06/2010 06:45 PM, Jorge Hernandez wrote:
> Hello.
>
>
> I would like to know how to generate dual 'y' axes on a multiple time
> series plot.
>
>
> I am using  ts.plot()  to get the multiple time series plot, but I would
> like a second
> vertical axis on the right to include another time series on a different
> scale.
>
Hi Jorge,
The code in the twoord.plot function in the plotrix package might help you.

Jim



More information about the R-help mailing list