pdpPlot: Partial Dependence Plots

Description Usage Arguments Author(s) Examples

Description

plot the marginal effect of each covariate on the response at the selected quantiles

Usage

1
2
3
pdpPlot(data = NULL, mod = NULL, covariates = NULL, plot_covars = NULL,
  covar_dict = NULL, quantiles = c(0.9), n_pts = 200,
  ylab = "Prediction (fish / m)", same_y_scale = F, trans_y_scale = NULL)

Arguments

data

data.frame that was used to fit the mod

mod

object of class quantregForest returned by the function quantregForest

covariates

character vector of names of covariates to be used in QRF model

plot_covars

which covariates should be included in final plot

covar_dict

data.frame containing columns called ShortName and Name. ShortName corresponds to the covariates that went into the mod, while Name is a longer version for plotting purposes.

quantiles

which quantiles should be included on the partial dependence plots

n_pts

how many points to make predictions for

ylab

what should the y-axis label be?

same_y_scale

should plots of different covariates be on the same y-axis scale? Default is FALSE.

trans_y_scale

should y scale be transformed? Default is NULL.

Author(s)

Kevin See

Examples

1
pdpPlot(data = mod_data, mod = qrf_mod, covariates = hab_mets, covar_dict = hab_dict)

KevinSee/qRfish documentation built on May 8, 2019, 4:50 p.m.