ewaff.glm.plot: Plots GLM regression of a CpG site

View source: R/plots.r

ewaff.glm.plotR Documentation

Plots GLM regression of a CpG site

Description

Plots GLM regression of a CpG site

Usage

ewaff.glm.plot(
  variable.of.interest,
  data,
  methylation,
  title,
  bp.threshold = 20
)

Arguments

variable.of.interest

Name in colnames(data) for the variable of interest.

data

Data frame containing all variables.

methylation

Vector of methylation levels.

title

Title of the plot.

ggplot

object showing the scatterplots (for continuous variables) or boxplots (for categorical variables) of methylation vs the variable of interest. Each plot corresponds to a covariate set. Methylation levels are in fact residuals from fitting a model with DNA methylation and the covariates.


perishky/ewaff documentation built on Nov. 10, 2024, 4:53 p.m.