[R] Fwd: plot axises on both sides of a graph
JeeBee
JeeBee at troefpunt.nl
Wed Sep 6 14:36:08 CEST 2006
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
> <gallon.li at gmail.com> Date: Sep 6, 2006 7:48 PM
> Subject: Re: [R] plot axises on both sides of a graph To: Jim Lemon
> <jim at bitwrit.com.au>
>
> 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.
More information about the R-help
mailing list