[R] Secondary Y axis title

John Theal jtheal at bluewin.ch
Sat Oct 20 23:42:33 CEST 2007


I still haven't resolved this problem.  However, when I run the plot.zoo 
example the label appears, it also appears if I enter the commands 
manually.  The problem that persists is that the label has to lie so 
close to the secondary y axis, that (in my case) it becomes almost 
indistinguishable from the axis scale labels.  If the label is long, 
then it over-writes some of the scale labeling.  I thought it might be 
do to the way the Quartz window manager handles the figure margins 
(under Mac OS X), but it looks as though maybe this is not the case.

I'm running the same versions of R (2.6.0, unpatched) and zoo (1.4-0) as 
Gabor.  I am using R under Mac OS X. 

Dave Hewitt wrote:
> I was curious about the exact same question that John Theal posed - 
> how to get a second y-axis label for a plot of two data series against 
> a common x (in my case, time).
>
> I tried two different methods - one in lattice and one in plot. Both 
> times the y-axis on the right side appears but the label does not. 
> Similar to John's comment, it appears that there is not enough room 
> for the label.
>
> Gabor mentioned that the plot.zoo examples give a plot like this. When 
> I run that series of examples, #7 appears to be what Gabor was 
> referring to, but even there the label for the right-hand y-axis is 
> missing.
>
> Help?
>
> Dave Hewitt
>
>



More information about the R-help mailing list