Both of the following work for me:

plot(1:2)
axis(4)
mtext("right y axis", side=4, line=-1.5)

par(mar=c(5,4,4,5)+.1)
plot(1:2)
axis(4)
mtext("right y axis", side=4, line=3)

hope this helps. spencer graves

Jorge A Ahumada wrote:
If you have a graph with two y-axes like:

plot(...) #1st graph
par(new=T)
plot(.....,axes=F,xlab="",ylab="") #plot second
axis(4) # put axes on the right side

How do you put a ylab to that second axis?

Thanks,

Jorge

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to