Skip to content
Prev 59499 / 398502 Next

Location of grobs etc on lattice output

On Saturday 20 November 2004 19:41, John Maindonald wrote:
Have you read help(trellis.focus)? This is new in 2.0.0 and the 
recommended API for interacting with lattice plots (you can of course 
use grid tools directly, but details are more likely to change at that 
level). 

It hasn't had much testing, so I would appreciate reports of things that 
should be doable easily but isn't.
trellis.focus("panel", row=1, column=1, clip.off=TRUE)

will put you in the plot region (panel), but will switch off clipping so 
you can write text outside.

You can also now control the amount of space between the axis and 
legend, see

str(trellis.par.get("layout.heights"))

Deepayan