[R] How to get the scale limits in lattice plot
Peter Ehlers
ehlers at ucalgary.ca
Thu Apr 1 18:22:25 CEST 2010
On 2010-04-01 9:53, James Rome wrote:
> I am drawing a density histogram, and want to label the plots with the
> mean using ltext(). But I need the x,y coordinates to feed into ltext,
> and I can't calculate them easily from my data. Is there a way to get
> the x and y ranges being used for the plot, so I can put the text at the
> correct position in the panel.function?
>
You probably want current.panel.limits().
-Peter Ehlers
> Thanks,
> Jim Rome
>
> ______________________________________________
> R-help at 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.
>
>
--
Peter Ehlers
University of Calgary
More information about the R-help
mailing list