Learn R Programming

moreparty (version 0.4)

NiceTreePlot: Plots conditional inference trees.

Description

Plots a partykit conditional inference tree in a pretty and simple way.

Usage

NiceTreePlot(ct, inner_plots = FALSE, cex = 0.8, justmin = 15)

Arguments

ct

A tree of class constparty (as returned by ctree from partykit package).

inner_plots

Logical. If TRUE, plots are displayed at each inner node. Default is FALSE.

cex

Numerical value. Multiplier applied to fontsize. Default is 0.8.

justmin

Numerical value. Minimum average edge label length to employ justification (see panelfunctions documentation from partykit package)

Author

Nicolas Robette

References

Hothorn T, Hornik K, Van De Wiel MA, Zeileis A. "A lego system for conditional inference". The American Statistician. 60:257–263, 2006.

Hothorn T, Hornik K, Zeileis A. "Unbiased Recursive Partitioning: A Conditional Inference Framework". Journal of Computational and Graphical Statistics, 15(3):651-674, 2006.

See Also

ctree

Examples

Run this code
  data(iris)
  iris2 = iris
  iris2$Species = factor(iris$Species == "versicolor")
  iris.ct = partykit::ctree(Species ~ ., data = iris2)
  NiceTreePlot(iris.ct, inner_plots = TRUE)

Run the code above in your browser using DataLab