[R] labels on right y-axis
Jim Lemon
jim at bitwrit.com.au
Thu Dec 12 21:31:44 CET 2013
On 12/13/2013 01:32 AM, Fisher Dennis wrote:
> OS X
> R 3.0.2
>
> Colleagues,
>
> I am displaying two sets of values changing over time; as a result, I have two y-axes. I add a label for the right-side Y axis with mtext(side=3, line=1.2, TEXT). The text is parallel to the axis -- so far, so good. However, the text is rotated counterclockwise from horizontal, whereas I would like it rotated clockwise.
>
> Neither srt nor las fixes this. I guess that one convoluted approach would be to use "text" rather than "mtext". However, positioning would be a nuisance and the xpd option would be needed. Is there any simpler approach?
>
> Dennis
>
Hi Dennis,
This sounds like a job for twoord.plot (plotrix). I think I can leave
the warnings, disclaimers and miscellaneous dissuasion to others.
Jim
More information about the R-help
mailing list