Learn R Programming

radiant.model (version 1.5.0)

pdp_plot: Create Partial Dependence Plots

Description

Create Partial Dependence Plots

Usage

pdp_plot(x, plot_list = list(), incl, incl_int, fix = TRUE, hline = TRUE)

Arguments

x

Return value from a model

plot_list

List used to store plots

incl

Which variables to include in PDP plots

incl_int

Which interactions to investigate in PDP plots

fix

Set the desired limited on yhat or have it calculated automatically. Set to FALSE to have y-axis limits set by ggplot2 for each plot

hline

Add a horizontal line at the average of the target variable. When set to FALSE no line is added. When set to a specific number, the horizontal line will be added at that value