On Aug 19, 2010, at 10:31 AM, <jeffrey.mor...@sanofipasteur.com> wrote:
Is it kosher to add, say, horizontal lines to a lattice xyplot using
abline(h=xxx)? The lines don't appear at the right value, that is, if
h=150, the line might appear at h=140?
Correct. The coordinate systems are not shared between lattice and
base graphics.
?panel.abline
If you have an existing plot on your screen device, you can try what
the help pages describe as an experimental method:
trellis.focus("panel", 1, 1)
panel.abline(h=140)
trellis.unfocus()
As far as I can tell, it doesn't actually change the lattice object
but the plot can be saved as whatever options for "Save as" your GUI
may offer.
--
David Winsemius, MD
West Hartford, CT
______________________________________________
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.