Hy4m/linkET

Intergrate correlation

Closed this issue · 1 comments

I found a R package named correlation with many different kinds of correlations. So would you like to intergrate it into linkET?

Hy4m commented

You can do this in two ways:

First way

correlate() function in linkET has a engine parameter which can be used to customize the calculation function.

library(linkET)
correlate(mtcars, engine = "correlation") %>%
  qcorrplot() + geom_square()

Second way

You can compute correlation matrix by correlation package, and then uses as_md_tbl() function in linkET converting to a md_tbl.

library(correlation)
correlation(mtcars) %>%
  as_md_tbl() %>%
  qcorrplot() + geom_square()