meth1DDensity: Create a 1D density plot of methylation level

View source: R/meth1DDensity.R

meth1DDensityR Documentation

Create a 1D density plot of methylation level

Description

Create a 1D density plot of methylation level

Usage

meth1DDensity(betas, line.color = "red", ylabel = "Sample")

Arguments

betas

BSseq or matrix of methylation levels (assumes matrix colnames are the sample names)

line.color

Color of plotted line (default: "red")

ylabel

Y-axis label (default: "Sample")

Value

a ggplot2 object of the density plot

Examples


orig_bed <- system.file("extdata", "MCF7_Cunha_chr11p15.bed.gz",
                        package="biscuiteer")
orig_vcf <- system.file("extdata", "MCF7_Cunha_header_only.vcf.gz",
                        package="biscuiteer")
bisc <- readBiscuit(BEDfile = orig_bed, VCFfile = orig_vcf,
                    merged = FALSE)
meth1DDensity(bisc)


huishenlab/bisplotti documentation built on Sept. 20, 2023, 10:13 p.m.