ewaff.glm.plot | R Documentation |
Plots GLM regression of a CpG site
ewaff.glm.plot(
variable.of.interest,
data,
methylation,
title,
bp.threshold = 20
)
variable.of.interest |
Name in |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.