Description Usage Arguments Value Examples
View source: R/plotting_util.R
Comprehensive function for calculating minimal depth of a maximal subtree averaged over the forest and then plotting the result.
1 | getAndPlotMetric(ranger_result, plot_missing_so = FALSE)
|
ranger_result |
A ranger object from the ranger package, which was created setting param write.forest to TRUE. In other words, it must have a 'forest' property. |
plot_missing_so |
An optional parameter to show features that only have a first order metric value. Variables can have high feature strength, but may be unlikely to have a second maximal subtree because of low cardinality. |
a list; element 1 is a data.frame containing subtree depth data, element 2 is the plot of number of splits vs first order metric, element 3 is a plot of second order vs first order.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.