Re: [R] Add y-title to a plot with two y axis

2010-09-05 Thread jim holtman
?mtext mtext("secondary y-axis label", 4, line=-1) you will have to adjust 'line" to get your spacing the way you want it. On Sun, Sep 5, 2010 at 7:52 PM, Magali teurlai wrote: > Hi all, > > We managed to plot two series on the same graph, with two y-axis, > however, we haven't managed to add

[R] Add y-title to a plot with two y axis

2010-09-05 Thread Magali teurlai
Hi all, We managed to plot two series on the same graph, with two y-axis, however, we haven't managed to add a title to the second y-axis x1=rnorm(25, mean=0, sd=1) y1=dnorm(x1, mean=0, sd=1) x2=rnorm(25, mean=0, sd=1) y2=dnorm(x2, mean=0, sd=1) plot(x1, y1, type='p', xlab='x', ylab='y') par(new