| plot.predict.gradientForest | R Documentation |
gradientForest prediction in geographical space
Plot method for predict.gradientForest and
predict.combinedGradientForest objects. A colour representation of
the biologically transformed space is plotted on geographical space.
## S3 method for class 'predict.gradientForest'
plot(x, X, Y, palette = "rg", col3 = 127, ...)
x |
an object of class |
X |
vector of positions in the X direction, having same length as |
Y |
vector of positions in the X direction, having same length as |
palette |
controls the colour key of the map. |
col3 |
controls the amount ( |
... |
further arguments passed to or from other methods. |
The first and second principal components of x are plotted on X and Y as a
colour, with, by default (palette="rg"), the red component proportional to the first PC
and green proportional to the second PC. Other choices of palette,
are: "gr", "br", "rb", "bg" and "gb".
The command is used for its side-effect of generating a plot
N. Ellis, CSIRO, Cleveland, Australia. <Nick.Ellis@csiro.au>
Ellis, N., Smith, S.J., and Pitcher, C.R. (2012). Gradient Forests: calculating importance gradients on physical predictors. Ecology, 93, 156–168.
predict.gradientForest, gradientForest
data(GBRexample)
# transform the predictors using predict() on a fine-scale grid
predictors <- names(importance(gf.GBR))
gf.pred <- predict(gf.GBR, Phys_grid[,predictors])
plot(gf.pred, Phys_grid[,c("EAST")], Phys_grid[,c("NORTH")], asp=1, palette="gr", pch=15,
main="Biological composition in Far North Great Barrier Reef")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.