Learn R Programming

ecospat (version 4.1.1)

ecospat.cor.plot: 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)

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.

Arguments

data

A dataframe object with environmental variables.

Author

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

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.

Examples

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

Run the code above in your browser using DataLab