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 | cforest_viz(obj, data, outcome, n = 10)
|
obj |
a randomForest object |
data |
the data.frame object from which the randomForest object was made |
outcome |
the name of the outcome variable in quotes (e.g., "bmi") |
n |
the number of important variables |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.