Hi
baptiste auguie wrote:> Dear all,
>
> I'm trying to follow an old document to use Grid frames,
>
> Creating Tables of Text Using grid
> Paul Murrell
> July 9, 2003
>
> As a minimal example, I wrote this,
>
> gf <- grid.frame(layout = grid.layout(1, 1), draw = TRUE)
> label1 <- textGrob("test", x = 0, just = "left",
name="test")
>
> gf=placeGrob(gf, rectGrob(), row = 1, col = 1)
> gf=packGrob(gf, label1, row = 1, col = 1)
You need 'dynamic=TRUE' in the call to packGrob() if you want the
automatic updating.
Paul
> grid.draw(gf)
>
> grid.edit("test", label = "longer text", grep=T)
>
> I'm a bit lost here, as I was expecting the frame to be automatically
> adjusted to fit the new text.
>
> Can anyone point me in the right direction?
>
> Best regards,
>
> baptiste
>
> ______________________________________________
> 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.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/