[R] grid graphics - concatenating gLists - is there a function?

Paul Murrell p.murrell at auckland.ac.nz
Sun Mar 28 23:44:22 CEST 2010


Hi

Mark Heckmann wrote:
> I have to gList objects containing several grobs.
> Now, I want to combine them into a single gList object as e.g. gTree()  
> does not take a nested gList as children argument.
> 
> gl1 <- gList(rectGrob(), rectGrob())
> gl2 <- gList(textGrob("Text 1"))
> 
> Now I want to combine gl1 and gl2 into a single gList object, that is  
> not nested.

I think this should work ...

gList(gl1, gl2)

Paul


> Thanks,
> Mark
> –––––––––––––––––––––––––––––––––––––––
> Mark Heckmann
> Blog: www.markheckmann.de
> R-Blog: http://ryouready.wordpress.com
> 
> 
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 

-- 
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/



More information about the R-help mailing list