Description Usage Arguments Details Value Note Examples
Create a correlation matrix for all quantitative variables in a data frame.
1 2 3 4 5 6 7 8 |
data |
data frame |
method |
a character string indicating which correlation coefficient is to be computed. One of "pearson" (default), "kendall", or "spearman". |
sort |
logical. If |
axis_text_size |
size for axis labels (default=12). |
number_text_size |
size for correlation coefficient labels (default=3). |
legend |
logical, if TRUE the legend is displayed. (default=FALSE) |
The cor_plot
function will only select quantitative variables from
a data frame. Categorical variables are ignored.
The correlation matrix is presented as a lower triangle matrix.
Missing values are deleted in listwise fashion.
a ggplot graph
This function is a wrapper for the ggcorrplot
function.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.