cor.data: Displays a graph with the correlations between the variables

Description Usage Arguments Details Value Author(s) See Also Examples

Description

A function to display a graph with the correlations between the reported environmental variables.

Usage

1
cor.data(abio, plot = TRUE, method = "pearson", rep = 1000)

Arguments

abio

the rasters. Object of type RasterStack, generated by the function stack

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.

Details

Graph indicating the correlations

Value

Returns a table with the correlation values between the variables.

Author(s)

Diogo S. B. Rocha

See Also

pairs

Examples

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)

diogosbr/modelos documentation built on May 9, 2019, 5:23 p.m.