[R] Plot multiple ctrees in the same figure

From: tudor <tudor_bodea_at_hotmail.com>
Date: Fri, 29 Apr 2011 02:04:04 -0700 (PDT)


Dear all:

Is there a way one could plot two conditional inference trees (party package, ctree) in a figure specified by layout? My attempts failed as plot.party seemed to take over the layout functionality and forced a single ctree plot to be displayed. A brief (non reproducible) example together with the intended behavior follows below. I hope I am not missing something obvious. My system: R2.12.2 on a Windows machine with party0.9-99991 and partykit0.1-0.

Thanks.

Tudor

# CREATE ctrees
...

layout(matrix(c(1,2,0,2), 2, 2, byrow=TRUE), widths=c(1,2), heights=c(1,2))

plot(ctree1)                    # plot first ctree
plot(ctree2)                    # plot second ctree

...
   
--
View this message in context: http://r.789695.n4.nabble.com/Plot-multiple-ctrees-in-the-same-figure-tp3483231p3483231.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.
Received on Fri 29 Apr 2011 - 13:35:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Apr 2011 - 13:40:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive