Description Usage Arguments Value Examples
Generate the ggplot for a correlation matrix
1 2 3 |
cor.mat |
A correlation matrix, usually generated with cor() function |
lower |
Whether to plot the lower triangle only |
psize |
The poit size for the dots |
high |
The color represents the high (positive) correlation |
low |
The color represents the low (negative) correlation |
digits |
The number of digits shown for the correlation values |
var.position |
The position to put the variable names. If the value is "axis", the variable names will be at the x and y axis. If the value is "diagonal", the variable names will be put along the diagonal line. |
var.angle |
The angle of the text for the variable names on the X axis or The diagonal line. |
add.legend |
Whether to add the legend for color (TRUE/FALSE) |
A ggplot of the correlation matrix
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.