plotPatterns: Plot methylation pattern distribution

Description Usage Arguments Details Value Author(s) Examples

View source: R/plotPatterns.R

Description

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

Usage

1
  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

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.

Value

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

Author(s)

Peijie Lin, Sylvain Foret, Conrad Burden

Examples

1
2
3
4
5
  data(patternsExample)
  estimates <- estimatePatterns(patternsExample, 
                                epsilon=0.02, 
                                eta=0.01)
  plotPatterns(estimates[[1]])

MPFE documentation built on Nov. 8, 2020, 7:49 p.m.