Description Usage Arguments Details Value Author(s) See Also Examples
A function to display a graph with the correlations between the reported environmental variables.
1 |
abio |
the rasters. Object of type RasterStack, generated by the function |
plot |
logic. Plots one of the cut rasters. |
method |
a character string indicating which correlation coefficient (or covariance) is to be computed: "pearson" (default), "kendall", or "spearman". |
rep |
numeric. Number of points generated to extract rater values and use in correlation. The default is 1000. |
Graph indicating the correlations
Returns a table with the correlation values between the variables.
Diogo S. B. Rocha
1 2 3 | fnames <- list.files(path=paste(system.file(package="dismo"), '/ex', sep=''), pattern='grd', full.names=TRUE )
predictors <- raster::stack(fnames)
cor.data(abio = predictors)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.