Message-ID: <B797D2CEC1C09448B6F40504C0F653420345E1@UABEXMB6.ad.uab.edu>
Date: 2009-02-25T21:47:42Z
From: Weidong Gu
Subject: problems with arrangement of figures by layout function
Hi,
I want to have histograms behind the regression tree figure.
Since 7 leafs resulted from the tree model (rpart), it would be nice to
have correspondent histograms below the tree figure. After a little
study, I could generate the correspondent histogram for each leaf, but
can't figure out how to arrange them in the right place. I tried
something like
>layout(rbind(c(1,1,1,1,1,1,1),c(2,3,4,5,6,7,8)))# the first row for
tree
>plot(tree,uniform=T,branch=0.5,margin=0,compress=T)
>histogram(IncU|where)
But the last command ignores the layout arrangement. How can I get
around the problem?
Thanks in advance
Weidong Gu
Department of Medicine
UAB