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:
print(my_plot(example_data,
ylab.right = list(expression(e==mc^2), vjust = -2)),
position = c(0,0,.95,1))
Try playing with 'vjust'.
Peter Ehlers
-Tim
On Thu, Mar 3, 2011 at 1:50 PM, Timothy W. Hilton <hil...@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,
Tim
sessionInfo()
R version 2.12.2 (2011-02-25)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] lattice_0.19-17
loaded via a namespace (and not attached):
[1] 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)),
position=c(0,0,.95,1))
You will need a recent R version for the ylab.right argument.
On Thu, Mar 3, 2011 at 12:52 PM, Timothy W. Hilton <hil...@meteo.psu.edu
wrote:
Dear R help list,
______________________________________________
R-help@r-project.org 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.
______________________________________________
R-help@r-project.org 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.