distanceCorrelation {methimpute} | R Documentation

## Distance correlation

### Description

Compute the distance correlation from a `methimputeData` object.

### Usage

    distanceCorrelation(data, distances = 0:50, separate.contexts = FALSE)

### Arguments

`data` | A `methimputeData` object.
`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 `TRUE`, correlations will only be calculated between cytosines of the same context.

### Value

A list() with an array containing the correlation values and the corresponding `ggplot`.

### Examples

    ## Get some toy data
    file <- system.file("data","arabidopsis_toydata.RData",
                        package="methimpute")
    data <- get(load(file))
    distcor <- distanceCorrelation(data)
    print(distcor$plot)

[Package methimpute version 1.14.0 Index]