Re: [R] Adding textbox to multiple panels in lattice

2012-09-24 Thread Paul Murrell
Hi Here's a panel function that does what I think you want (NOTE that you need to load 'grid' for this to work) ... library(grid) panel.tpop <- function(x,y,...){ panel.grid(h=length(agegrs),v=5,col="lightgrey",lty=1) ls1 <<- list(...) y <<- y iFrame <- iEduDat[ls1$subscripts,

[R] Adding textbox to multiple panels in lattice

2012-09-24 Thread Erich Strießnig
Dear R-users, I am trying to add some text in a textbox to all panels in the following example file. Using the panel-function, I can add a white rectangle with panel.rect but then I have to fit in the text into the box by hand and it will not automatically be centered. Does anyone know how to add