cor_text | R Documentation |
Format text of a correlation matrix
cor_text(r, digits = 2, remove_leading_zero = TRUE, remove_diagonal = FALSE)
r |
a matrix of correlations |
digits |
Number of digits to round |
remove_leading_zero |
If TRUE, remove leading zero from all correlations |
remove_diagonal |
If TRUE, remove diagonal of ones |
a matrix of correlations as text
cor_text(matrix(.5,2,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.