plot-forestry | R Documentation |
plots a tree in the forest.
## S3 method for class 'forestry'
plot(x, tree.id = 1, print.meta_dta = FALSE, beta.char.len = 30, ...)
x |
A forestry x. |
tree.id |
Specifies the tree number that should be visualized. |
print.meta_dta |
A flag indicating whether the data for the plot should be printed. |
beta.char.len |
The length of the beta values in leaf node representation. This is only required when plotting a forestry object with linear aggregation functions (linear = TRUE). |
... |
additional arguments that are not used. |
plot
A plot of the specified tree in the forest.
set.seed(292315)
rf <- forestry(x = iris[,-1],
y = iris[, 1],
nthread = 2)
plot(x = rf)
plot(x = rf, tree.id = 2)
plot(x = rf, tree.id = 500)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.