Learn R Programming

BiSeq (version 1.12.0)

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

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

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.

See Also

plotMeth, plot

Examples

Run this code

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"))

Run the code above in your browser using DataLab