Description Usage Arguments Value Examples
Compute the distance correlation from a methimputeData
object.
1 | 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
.
1 2 3 4 5 6 | ## Get some toy data
file <- system.file("data","arabidopsis_toydata.RData",
package="methimpute")
data <- get(load(file))
distcor <- distanceCorrelation(data)
print(distcor$plot)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.