View source: R/cor_mark_significant.R
cor_mark_significant | R Documentation |
Combines correlation coefficients and significance levels in a correlation matrix data.
cor_mark_significant( x, cutpoints = c(0, 1e-04, 0.001, 0.01, 0.05, 1), symbols = c("****", "***", "**", "*", "") )
x |
an object of class |
cutpoints |
numeric vector used for intervals. |
symbols |
character vector, one shorter than cutpoints, used as significance symbols. |
a data frame containing the lower triangular part of the correlation matrix marked by significance symbols.
mtcars %>% select(mpg, disp, hp, drat, wt, qsec) %>% cor_mat() %>% cor_mark_significant()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.