Learn R Programming

methylKit (version 0.9.5)

getCorrelation: get correlation between samples in methylBase object

Description

The functions returns a matrix of correlation coefficients and/or a set of scatterplots showing the relationship between samples

Usage

getCorrelation(object,method="pearson",plot=FALSE)

Arguments

object

a methylBase object

method

a character string indicating which correlation coefficient (or covariance) is to be computed (default:"pearson", other options are "kendall" and "spearman")

plot

scatterPlot if TRUE (default:FALSE)

Value

a correlation matrix object and plot scatterPlot

Examples

Run this code
# NOT RUN {
data(methylKit)
getCorrelation(methylBase.obj,method="pearson",plot=FALSE)
# }

Run the code above in your browser using DataLab