Description Usage Arguments Details
grid_partial_plot does basically the same job as gg_partial_plot but it has the capacity to plot factors alongside continuous variables. It does this by using gridExtra::grid.arrange. There is probably a more elegant/general solution out there but this worked so I'm sticking with it for now.
1 | grid_partial_plot(x, ...)
|
x |
a gbm.step object |
vars |
a character vector of the variables you want to plot |
factors |
a character vector of those variables which are factors |
grid_partial_plot
plots partial dependence plots from gbm.step models in ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.