Mark Heckmann
2010-Mar-26 14:16 UTC
[R] grid graphics - concatenating gLists - is there a function?
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100326/3cb9a0b9/attachment.pl>
Paul Murrell
2010-Mar-28 21:44 UTC
[R] grid graphics - concatenating gLists - is there a function?
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/
Mark Heckmann
2010-Mar-28 21:59 UTC
[R] grid graphics - concatenating gLists - is there a function?
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100328/a75dff57/attachment.pl>
David Winsemius
2010-Mar-28 23:02 UTC
[R] grid graphics - concatenating gLists - is there a function?
On Mar 28, 2010, at 5:59 PM, Mark Heckmann wrote:> Hi Paul, > > unfortunately this did not work out. > I use the following now: > > childgrobs <- c(gl1, gl2) > class(childgrobs) <- "gList" > > This seems to work for me.What about?: gl3 <- gl1 gl3[length(g1)+1] <- gl2 -- David> Bests, Mark > > > Am 28.03.2010 um 23:44 schrieb Paul Murrell: > >> 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/ > > ??????????????????????????????????????? > Mark Heckmann > Dipl. Wirt.-Ing. cand. Psych. > Vorstra?e 93 B01 > 28359 Bremen > Blog: www.markheckmann.de > R-Blog: http://ryouready.wordpress.com > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.David Winsemius, MD West Hartford, CT