[R] lattice custom axis function -- right side margins
ehlers at ucalgary.ca
Fri Mar 4 02:01:58 CET 2011
Timothy W. Hilton wrote:
> To clarify the trouble I'm having with ylab.right, I am not getting an
> error message; the right-side label just does not appear on the plot.
Maybe this is mac-specific. On Windows, the label shows up
just fine. You might be able to make it appear by adjusting
the 'vjust' argument to ylab.right:
ylab.right = list(expression(e==mc^2), vjust = -2)),
position = c(0,0,.95,1))
Try playing with 'vjust'.
>> On Thu, Mar 3, 2011 at 1:50 PM, Timothy W. Hilton <hilton at meteo.psu.edu>wrote:
>>> Many thanks, Richard -- the position argument does exactly what I
>>> needed. I'm not having any luck with the ylab.right argument. My R and
>>> lattice are up to date (below); is there something else I should check?
>>> Thanks for the help,
>>> R version 2.12.2 (2011-02-25)
>>> Platform: i386-apple-darwin9.8.0/i386 (32-bit)
>>>  en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>>> attached base packages:
>>>  stats graphics grDevices utils datasets methods base
>>> other attached packages:
>>>  lattice_0.19-17
>>> loaded via a namespace (and not attached):
>>>  grid_2.12.2 tools_2.12.2
>>> On Thu, Mar 2011, 03 at 01:05:49PM -0500, Richard M. Heiberger wrote:
>>>> print(my_plot(example_data, ylab.right=expression(e==mc^2)),
>>>> You will need a recent R version for the ylab.right argument.
>>>> On Thu, Mar 3, 2011 at 12:52 PM, Timothy W. Hilton <hilton at meteo.psu.edu
>>>>> Dear R help list,
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help