plotSmoothedClassMeans: Plot smoothed class means from multiple repeats

View source: R/EMbasic.R

plotSmoothedClassMeansR Documentation

Plot smoothed class means from multiple repeats

Description

Plot loess-smoothed class means from multiple repeats of EM.

Usage

plotSmoothedClassMeans(
  allClassMeans,
  xRange = c(-250, 250),
  facet = FALSE,
  title = "Smoothed class means",
  myXlab = "CpG/GpC position",
  featureLabel = "TSS",
  baseFontSize = 12
)

Arguments

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)

Value

Returns a ggplot2 object


jsemple19/EMclassifieR documentation built on Aug. 12, 2022, 2:57 p.m.