Description Usage Arguments Examples
View source: R/FUNCTION_plotCorrMatrix.R
This function generates a plot of a correlation matrix with various options. It is a wrapper function for the corrplot function from the corrplot package.
1 2 3 4 5 6 7 | plotCorrMatrix(
X,
order = "original",
n.groups = NA,
label = NULL,
plot.type = "circle"
)
|
X |
a correlation matrix, typically generated by a call to calcCorrMatrix or the base fn cor() |
order |
either "original" or "clustered" (for now, other options to be explored) |
n.groups |
number of groups to mark (applies only if order = "clustered"). NA produces default of round(n/3). |
label |
plot title, default is NULL |
plot.type |
layout options in corrplot package. Default is "circle". Other good options are "color" and "number" |
1 2 | M <- cor(mtcars)
plotCorrMatrix(M)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.