View source: R/ecospat.cor.panel.R
ecospat.cor.plot | R Documentation |
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).
ecospat.cor.plot(data)
data |
A dataframe object with environmental variables. |
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
.
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.
Adjusted by L. Mathys, 2006, modified by N.E. Zimmermann
data <- ecospat.testData[,4:8]
ecospat.cor.plot(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.