View source: R/plot_partial_dependence_v2.R
plot_partial_dependence_v2 | R Documentation |
Plot the partial dependence of the response for each covariate
plot_partial_dependence_v2( rf_mod, data, plot_covars = NULL, data_dict = NULL, type = c("quantile", "mean"), pred_quantile = 0.9, n_pts = 200, log_transform = T, log_offset = 0.005, scales = "free" )
rf_mod |
the |
data |
the data.frame used to fit the |
plot_covars |
character vector of covariates to plot |
data_dict |
data.frame containing columns |
type |
whether to predict a particular quantile, or the mean |
pred_quantile |
if |
n_pts |
how many points to use in predictions? |
log_transform |
was the response log transformed? |
log_offset |
if an offset was used before log transforming, enter it here. |
scales |
ggplot facet_wrap argument |
... |
other arguements to be passed to |
ggplot object
Kevin See
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.