plotSmoothMeth: Plots smoothed methylation values for a bunch of samples and...

Description Usage Arguments Author(s) See Also Examples

Description

This function plots the smoothed methylation data as lines for a given region and all given samples. It is also possible to average the data for groups of samples.

Usage

1
plotSmoothMeth(object.rel, region, groups, group.average, ...)

Arguments

object.rel

A BSrel.

region

A GRanges of length one.

groups

OPTIONAL. A factor defining two or more sample groups within the given object.

group.average

OPTIONAL. A logical. If TRUE, then the data is averaged for the groups given in groups. Default is FALSE..

...

Other graphical parameters passed to the plot function.

Author(s)

Katja Hebestreit

See Also

plotMeth, plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(predictedMeth)
data(DMRs)

plotSmoothMeth(object.rel = predictedMeth,
               region = DMRs[3] + 200,
               groups = colData(predictedMeth)$group,
               col=c("magenta", "blue"))
legend("topright",
       lty=1,
       legend=levels(colData(predictedMeth)$group),
       col=c("magenta", "blue"))

BiSeq documentation built on Nov. 8, 2020, 8:05 p.m.