plotSmoothMeth {BiSeq} | R Documentation

## 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.

### Author(s)

Katja Hebestreit

### See Also

`plotMeth`, `plot`

### Examples

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

[Package BiSeq version 1.34.0 Index]