ggMultiPDfit | R Documentation |
Function to draw partial dependency plots with fitted values from several boosted regression trees obtained with the gbm.step routine in the dismo package. The models need to have the same set of predictors.
ggMultiPDfit(..., n.plots = length(pred.names), predictor = NULL,
col.dots = c(), alpha.dot = 0.5, cex.dot = 1, legend.pos = "right",
smooth = F, cex.smooth = 0.3, se = F, span = 0.3, nrow = NULL,
ncol = NULL)
... |
several 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 predictor to plot. Can be either a character name (use "") or a number indicating its ranking in terms of relative influence |
col.dots |
a vector with as many colors as there are BRTs |
alpha.dot |
transparency of the dots (default = 0.5) |
cex.dot |
size of the dots |
legend.pos |
position for the legend ("none", "right", "left", "bottom", "top") |
smooth |
Logical. If TRUE (default FALSE) add a smoother to each set of fitted values |
cex.smooth |
size of the smoothers |
se |
Logical. If TRUE (default FALSE), add standard error around the smoother |
span |
span of the smoothers (default = 0.3) |
nrow |
number of plots per row |
ncol |
number of plots per column |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.