corrPlot | R Documentation |
Having calculated the correlations a heat map indicating the magnitude of the
correlations is produced using ggplot
. In this heat map, the darker the red in
a cell then the closer the correlation is to -1, while the deeper the blue in the cell,
then the closer the correlation is to 1. Also produced is a matrix plot of all pairwise
combinations of the variables. The matrix plot contains a scatter diagram for each pair,
as well as the value of the correlation coefficient. The argument pairs.sets
can be used to restrict the pairs in the matrix plot to those combinations within each
set.
corrPlot(responses, data, which.plots = c("heatmap","matrixplot"),
title = NULL, labels = NULL, labelSize = 4,
show.sig = FALSE, pairs.sets = NULL, ...)
responses |
A |
data |
A |
which.plots |
A |
title |
Title for the plots. |
labels |
A |
labelSize |
A |
show.sig |
A |
pairs.sets |
A |
... |
allows passing of arguments to other functions |
NULL
.
Chris Brien
ggplot
.
## Not run:
data(exampleData)
responses <- c("Area","Area.SV","Area.TV", "Image.Biomass", "Max.Height","Centre.Mass",
"Density", "Compactness.TV", "Compactness.SV")
corrPlot(responses, longi.dat, pairs.sets=list(c(1:4),c(5:7)))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.