density_jitter_plot: Density-jitter plot

View source: R/density_jitter_plot.R

density_jitter_plotR Documentation

Density-jitter plot

Description

Overlaps a density plot with a jitter plot. A random y-component is added to cause the spread of points.

Usage

density_jitter_plot(
  mat,
  CpG,
  sex = NULL,
  alpha = 0.5,
  lambda = 0.05,
  main = NULL
)

Arguments

mat

Matrix of a continous varible such as beta-value, M-value, CVlogT, etc (CpGs as rows and samples as columns)

CpG

Targeted CpG

sex

vector of sex. First level is expected to be Female (coloured pink). Check levels(sex) to see if that is the case.

alpha

Transparency

lambda

Regulates the random spread of the points

main

Title name

Value

Graphics

Examples

density_jitter_plot(beta_value, "cg00050873", pheno$sex)

BenjaminPlanterose/UMtools documentation built on Aug. 19, 2024, 4:54 a.m.