layers_correlation: Gives the Pearson correlation between layers
Description
layers_correlations returns the Pearson product-moment correlation
coefficient (Pearson's r) for every combination of the give layercodes. The
correlation between a terrestrial and a marine layer has been set to
NA.
Usage
layers_correlation(layercodes = c())
Value
A dataframe with the Pearson product-moment correlation coefficients.
Arguments
layercodes
character vector or dataframe. Codes of the layers, you
want the correlation matrix of, as a character vector or a dataframe with a
"layer_code" column. With the default empty vector the correlation between
all layers is returned.
# correlation of the first 10 layerslayers_correlation()[1:10,1:10]
layers_correlation(c("BO_calcite", "MS_bathy_5m"))
layers_correlation(c("BO_calcite", "MS_bathy_5m"))