ecospat.cor.plot: Correlation Plot

View source: R/ecospat.cor.panel.R

ecospat.cor.plotR Documentation

Correlation Plot

Description

A scatter plot of matrices, with bivariate scatter plots below the diagonal, histograms on the diagonal, and the Pearson correlation above the diagonal. Useful for descriptive statistics of small data sets (better with less than 10 variables).

Usage

ecospat.cor.plot(data)

Arguments

data

A dataframe object with environmental variables.

Details

Adapted from the pairs help page. Uses panel.cor, and panel.hist, all taken from the help pages for pairs. It is a simplifies version of pairs.panels() function of the package psych.

Value

A scatter plot matrix is drawn in the graphic window. The lower off diagonal draws scatter plots, the diagonal histograms, the upper off diagonal reports the Pearson correlation.

Author(s)

Adjusted by L. Mathys, 2006, modified by N.E. Zimmermann

Examples

data <- ecospat.testData[,4:8]
ecospat.cor.plot(data)

ecospat documentation built on July 4, 2024, 5:06 p.m.