Learn R Programming

DChIPRep (version 1.2.3)

plotProfiles: Produce a TSS plot of the two conditions in the data

Description

This function plots the positionwise mean of the log2 of the normalized counts of the two conditions after runTesting has been run on a DChIPRepResults object.

Usage

"plotProfiles"(object, meanFunction = function(x) { smhuber(x)$mu }, ...)

Arguments

object
a DChIPRepResults object after runTesting
meanFunction
a function to compute the positionwise mean per group, defaults to a Huber estimator of the mean.
...
additional parametes for plotting (NOT YET IMPLEMENTED)

Value

a ggplot2 object

Examples

Run this code
if (requireNamespace("mgcv", quietly=TRUE)) {
data(testData)
dcr <- DChIPRepResults(testData)
dcr <- runTesting(dcr)
plotProfiles(dcr)
}

Run the code above in your browser using DataLab