Description Usage Arguments Examples
View source: R/correlation_table.R
Function to create a correlation table.
1 2 | correlation_table(correlations, triangle = "lower", p_values = NULL,
diagonal = NULL, labels = NULL, digits = 2)
|
correlations |
A data frame or matrix containing the correlations. |
triangle |
A character string indicating whether the lower, upper, or both halves should be visible, must be one of 'lower', 'upper', or 'both'. You can specify just the initial letter. |
p_values |
A data frame or matrix containing the p-values. |
diagonal |
A vector of values to be placed on the diagonal. Default is a vector of 1s. |
labels |
A vector of strings containing the labels for each variable. |
digits |
An integer indicating the number of decimal places. |
1 | # Add examples
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.