Re: [R] How to get the scale limits in lattice plot

2010-04-01 Thread James Rome
The key was to use grid.text() inside the panel function. It allows you to specify things in 0-1 "npc" units. On 4/1/10 12:23 PM, David Winsemius wrote: > > On Apr 1, 2010, at 11:53 AM, James Rome wrote: > >> I am drawing a density histogram, and want to label the plots with the >> mean using ltex

Re: [R] How to get the scale limits in lattice plot

2010-04-01 Thread David Winsemius
On Apr 1, 2010, at 11:53 AM, 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 th

Re: [R] How to get the scale limits in lattice plot

2010-04-01 Thread Peter Ehlers
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

[R] How to get the scale limits in lattice plot

2010-04-01 Thread James Rome
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 positi