Comprehensive function for calculating minimal depth of a maximal subtree averaged over the forest and then plotting the 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.
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.