plotCorrTriangle | R Documentation |
Plot lower triangle of correlation matrix
plotCorrTriangle(
C,
size = 1,
stroke = 1.5,
cols = c("blue", "white", "red"),
absCorr = FALSE
)
C |
correlation matrix |
size |
plotting argument to geom_point() |
stroke |
plotting argument to geom_point() |
cols |
array of two colors for gradient |
absCorr |
show absolute correlations |
Adjust size and stroke of points in the plot to fix look of plot depending on dimensions
ggplot2 plot of correlation matrix
N = 1000
p = 100
X = matrix(rnorm(N*p), N,p)
C = cor(X)
plotCorrTriangle( C )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.