See these two examples. 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) Good luck finding the right combination again ;) On Wed, 06 Sep 2006 20:08:43 +0800, gallon li wrote: > ---------- Forwarded message ---------- From: gallon li > <[EMAIL PROTECTED]> Date: Sep 6, 2006 7:48 PM > Subject: Re: [R] plot axises on both sides of a graph To: Jim Lemon > <[EMAIL PROTECTED]> > > Both of your suggestions are so helpful. By combining what you told me, > now I am able to produce a second y-axis on the right-hand-side. Still one > problem remains: how can I put a definition of this y-axis in the space > left? Clearly there is enough room and I have to check some functions for > defining the margin of a plot. Moreoever, it seems not straight forward to > put some vertical text directly on the plot for this second ylab. ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.