plot_violin: Violin Plot for beta-Values

Description Usage Arguments Value Examples

View source: R/methrix_plot.R

Description

Violin Plot for β-Values

Usage

1
2
3
4
5
6
7
plot_violin(
  m,
  ranges = NULL,
  n_cpgs = 25000,
  pheno = NULL,
  col_palette = "RdYlGn"
)

Arguments

m

Input methrix object

ranges

genomic regions to be summarized. Could be a data.table with 3 columns (chr, start, end) or a GenomicRanges object

n_cpgs

Use these many random CpGs for plotting. Default 25000. Set it to NULL to use all - which can be memory expensive.

pheno

Column name of colData(m). Will be used as a factor to color different groups in the violin plot.

col_palette

Name of the RColorBrewer palette to use for plotting.

Value

ggplot2 object

Examples

1
2
data('methrix_data')
plot_violin(m = methrix_data)

methrix documentation built on Feb. 13, 2021, 2 a.m.