R/cor_mark_significant.R
cor_mark_significant.Rd
Combines correlation coefficients and significance levels in a correlation matrix data.
an object of class cor_mat()
.
numeric vector used for intervals.
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()
#> rowname mpg disp hp drat wt qsec
#> 1 mpg
#> 2 disp -0.85****
#> 3 hp -0.78**** 0.79****
#> 4 drat 0.68**** -0.71**** -0.45**
#> 5 wt -0.87**** 0.89**** 0.66**** -0.71****
#> 6 qsec 0.42* -0.43* -0.71**** 0.091 -0.17