plotSingleMoleculesAmp: Do a single molecule plot of dSMF data

Description Usage Arguments Value Examples

View source: R/dSMF.R

Description

Do a single molecule plot of dSMF data

Usage

1
2
3
plotSingleMoleculesAmp(mat, regionName, regionGRs, featureGRs = c(),
  myXlab = "CpG/GpC position", featureLabel = "TSS", title = NULL,
  baseFontSize = 12)

Arguments

mat

A methylation matrix

regionName

The name of the region to be plotted (usually gene name). Must match Ids in reagionGRs

regionGRs

Genomic Ranges which include region to be plotted (ID metadata column must match regionName)

featureGRs

Genomic Ranges of any features of interest (e.g. TSS) that you wish to be plotted as vertical red line

myXlab

Text to be used for X axis label (default="CpG/GpC position")

featureLabel

Text to be used to label special feature you are plotting (default="TSS")

title

Text to be used as plot title (default=NULL will results in the plot named accorind to the regionGR)

baseFontSize

The base font size to be used for the plot (default is 12)

Value

A ggplot2 plotting object

Examples

1
plotSingleMoleculesAmp(methMat,"ttTi5605",ttTi5605gr,featureGRs=c(),myXlab="CpG position",featureLabel="TSS",title=NULL,baseFontSize=12)

jsemple19/nanodsmf documentation built on July 23, 2020, 7:40 a.m.