Hi,
You can get something better in this way:
plot(mtree,terminal_panel=node_barplot(mtree, ylines=1.2, gap=0.05))
Check node_barplot() for details, although it does not offer for barplots
the possibility to graph it horizontally.
Regards,
Carlos Ortega
www.qualityexcellence.es
On Thu, Sep 8,
Hi,
I am trying to get the terminal nodes of a plot of a ctree object to look nice.
Using the iris data I have:
library(party)
mtree <- ctree(Species ~ ., data=iris)
plot(mtree,terminal_panel=node_barplot(mtree))
The terminal nodes don't display the species names because the names
are displayed
2 matches
Mail list logo