Learn R Programming

RnBeads (version 1.4.0)

rnb.plot.biseq.coverage.violin: rnb.plot.biseq.coverage.violin

Description

Plots the violin plots of the coverage distribution

Usage

rnb.plot.biseq.coverage.violin(rnbs.set, samples, fname = NULL, type = "sites", covg.range = NULL, ...)

Arguments

rnbs.set
RnBiseqSet object
samples
unique sample identifiers. In case rnb.getOption("identifiers.column") is not NULL, samples should attain values from the corresponding column, or colnames(meth(rnb.set)) otherwise
fname
base filename for the files to be plotted. If NULL, the plot will not be written to file
type
character singleton. If site the coverage information is plotted for each methylation site. Otherwise should be one of the regions returned by rnb.region.types
covg.range
Vector of length 2 specifying the range of coverage to be plotted. if NULL (default) the entire range will be plotted
...
other arguments to createReportPlot

Value

plot as an object of type ReportPlot if writeToFile is TRUE and of class ggplot otherwise.