Description Usage Arguments Details Value Examples
View source: R/plotCorrMatrix.R
Plot correlation matrix
| 1 2 3 4 5 6 7 8 | plotCorrMatrix(
  C,
  dendrogram = "both",
  sort = TRUE,
  margins = c(13, 13),
  key.xlab = "correlation",
  ...
)
 | 
| C | correlation matrix: R or R^2 matrix | 
| dendrogram | character string indicating whether to draw 'both' or none' | 
| sort | sort rows and columns based on clustering | 
| margins | spacing of plot | 
| key.xlab | label of color gradient | 
| ... | additional arguments to heatmap.2 | 
Plots image of correlation matrix using customized call to heatmap.2
Image of correlation matrix
| 1 2 3 4 5 6 7 8 9 10 11 | # simulate simple matrix of 10 variables
mat = matrix(rnorm(1000), ncol=10)
# compute correlation matrix
C = cor(mat)
# plot correlations
plotCorrMatrix( C )
# plot squared correlations
plotCorrMatrix( C^2, dendrogram="none" )
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.