Description Usage Arguments Value Examples
View source: R/general_functions.R
Create a ggplot2 Correlation Matrix
1 2 3 4 5 6 7 8 9 10 11 |
dat |
Input dataframe or matrix (*do not input a correlation matrix*). |
Variables_Labels |
Character vector of variable Labels, corresponding to each column in dat. If missing (NULL) then colnames(dat) will be used. |
textadjust |
Scalar. Adjust text size by a magnification factor. |
includeN |
Logical. Include sample size on upper diagononal (TRUE) or leave blank (FALSE). |
reportCI |
Logical. Include confidence interval on upper diagonal (TRUE) or leave blank (FALSE). |
low_colour |
Logical. Hex colour code for the lowest correlation. |
high_colour |
Logical. Hex colour code for the highest correlation. |
abs_colour |
Logical. If TRUE, will use the absolute correlation (i.e. ignoring whether the correlation is positive or negative) for determining square colour. |
ggplot
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.