ggPDfit | R Documentation |
Function to draw partial dependency plots with fitted values from a boosted regression trees obtained with the gbm.step routine in the dismo package.
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,
...)
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) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.