plotSmoothedClassMeans | R Documentation |
Plot loess-smoothed class means from multiple repeats of EM.
plotSmoothedClassMeans( allClassMeans, xRange = c(-250, 250), facet = FALSE, title = "Smoothed class means", myXlab = "CpG/GpC position", featureLabel = "TSS", baseFontSize = 12 )
allClassMeans |
A long data frame of methylation or bincount values with columns for position, methylation frequency (methFreq), class and replicate. |
xRange |
A vector of the first and last coordinates of the region to plot (default is c(-250,250)) |
facet |
Plot mean profiles separately as a facet_wrap plot (default=FALSE) |
title |
A title for the plot (default is "Class means") |
myXlab |
A label for the x axis (default is "CpG/GpC position") |
featureLabel |
A label for a feature you want to plot, such as the position of the TSS (default="TSS") |
baseFontSize |
The base font for the plotting theme (default=12 works well for 4x plots per A4 page) |
Returns a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.