partial_dependence_plot: Partial dependence plot

Description Usage Arguments Value

View source: R/random-forest-model.R

Description

Partial dependence plot

Usage

1
2
partial_dependence_plot(rf_model, data, return_plot = FALSE, cols = 2,
  ylabel = "y", verbose = FALSE)

Arguments

rf_model

random forest model obtained from the function fit_random_forest.

data

data used to fit the random forest model

return_plot

should plots be showed? Boolean. FALSE by default.

cols

number of columns to use when plotting the dependence plots. Defaults to 2.

ylabel

label of the y axis. Character. Defaults to "y".

verbose

be verbose? Boolean.

Value

a list with x and y values for the partial dependence graph for each variable. If show_plots is TRUE, NULL is returned.


pegoraro/qchlorophyll documentation built on May 24, 2019, 11:46 p.m.