View source: R/as.party.C5.0.R
plot.C5.0 | R Documentation |
Plot a decision tree.
## S3 method for class 'C5.0' plot(x, trial = 0, subtree = NULL, ...)
x |
an object of class |
trial |
an integer for how many boosting iterations are
used for prediction. NOTE: the internals of |
subtree |
an optional integer that can be used to isolate
nodes below the specified split. See
|
... |
options passed to |
No value is returned; a plot is rendered.
Mark Culp, Max Kuhn
Quinlan R (1993). C4.5: Programs for Machine Learning. Morgan Kaufmann Publishers, http://www.rulequest.com/see5-unix.html
C5.0()
, partykit::party()
mod1 <- C5.0(Species ~ ., data = iris) plot(mod1) plot(mod1, subtree = 3) mod2 <- C5.0(Species ~ ., data = iris, trials = 10) plot(mod2) ## should be the same as above ## plot first weighted tree plot(mod2, trial = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.