Visualizes–using ggplot2–the relationship of n important variables in a random forest with the outcome with a loess curve (if continuous). You can easily add more ggplot2 functions to the plot to adjust it as desired. The default theme is this package's 'theme_anteo'.
1 | forest_viz(obj, n = 10, imp_measure = "default")
|
obj |
a randomForest object |
n |
the number of important variables |
imp_measure |
the variable importance measure |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.