distanceCorrelation {methimpute} | R Documentation |
Compute the distance correlation from a methimputeData
object.
distanceCorrelation(data, distances = 0:50, separate.contexts = FALSE)
data |
A |
distances |
An integer vector specifying the distances for which the correlation will be calculated. |
separate.contexts |
A logical indicating whether contexts are treated separately. If set to |
A list() with an array containing the correlation values and the corresponding ggplot
.
## Get some toy data file <- system.file("data","arabidopsis_toydata.RData", package="methimpute") data <- get(load(file)) distcor <- distanceCorrelation(data) print(distcor$plot)