NodeTreePlot | R Documentation |
Plots the results of each node of a partykit
conditional inference tree with boxplots (regression) or lollipops (binary classification) .
NodeTreePlot(ct)
ct |
A tree of class |
A ggplot2 object.
Nicolas Robette
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.
ctree
data(iris)
iris2 = iris
iris2$Species = factor(iris$Species == "versicolor")
iris.ct = partykit::ctree(Species ~ ., data = iris2)
NodeTreePlot(iris.ct)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.