[R] put a label on right y axis?
Spencer Graves
spencer.graves at pdf.com
Wed Jul 30 19:52:13 CEST 2003
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
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list