?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
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
2 matches
Mail list logo