Learn R Programming

MPFE (version 1.8.0)

plotPatterns: Plot methylation pattern distribution

Description

Plot the observed distribution and the estimated distribution of the methylation patterns

Usage

plotPatterns(compareData, yLimit1=NULL, yLimit2=NULL)

Arguments

compareData
data frame, obtained from the output of the function estimatePatterns
yLimit1
upper limit of y-axis on left hand scale of the first graph. If NULL, defaults to show all patterns
yLimit2
upper limit of y-axis on left hand scale of the second graph. If NULL, defaults to show most patterns

Value

A plot that compares the observed read distribution with the estimated distribution.

Details

The two graphs in the output plot are the same but have different ranges. The parameters yLimit1 and yLimit2 control the range of the y_axis on the plots produced.

Examples

Run this code
  data(patternsExample)
  estimates <- estimatePatterns(patternsExample, 
                                epsilon=0.02, 
                                eta=0.01)
  plotPatterns(estimates[[1]])

Run the code above in your browser using DataLab