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, 2011 at 3:35 PM, Warren W. Kretzschmar
<wkretzsch@gmail.com>wrote:

> 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 horizontally.  I would like to reduce the size of the
> labels and make the terminal nodes horizontal barplots or rotate the
> labels by 90 degrees, but I don't know how to do this.  Any help is
> appreciated.
>
> Warren
>
> ______________________________________________
> R-help@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.
>

	[[alternative HTML version deleted]]

