ggPDfit: ggPDfit

Description Usage Arguments

Description

Function to draw partial dependency plots with fitted values from a boosted regression trees obtained with the gbm.step routine in the dismo package.

Usage

1
2
3
4
5
ggPDfit(gbm.object, n.plots = length(pred.names), predictor = NULL,
  nrow = NULL, ncol = NULL, col.dot = "grey", cex.dot = 1,
  alpha.dot = 0.4, smooth = FALSE, col.smooth = "red", span = 0.3,
  se = F, cex.smooth = 0.3, y.label = "Fitted values", x.label = NULL,
  ...)

Arguments

gbm.object

a gbm.step object (object of S3 class gbm)

n.plots

number of predictors to display, ranked by decreasing relative influence (default=all)

predictor

select a single variable. Can be either a character name (use "") or a number indicating its ranking in terms of relative influence

nrow

number of plots per row

ncol

number of plots per column

col.dot

color of the dots

cex.dot

size of the dots

alpha.dot

transparency of the dots (default = 0.4)

smooth

Logical. If TRUE, (default FALSE) add a smoother to the fitted values

col.smooth

color of the smoother

span

span of the smoother (default = 0.3)

se

Logical. If TRUE (default FALSE), add standard error around the smoother

cex.smooth

size of the smoother line (default = 0.3)

y.label

title for the y-axis (default = "Fitted values")

x.label

title for the x-axis (by default the predictor name and its relative influence)


JBjouffray/ggBRT documentation built on Jan. 30, 2021, 8:13 a.m.