Description Usage Arguments Value Author(s) Examples
View source: R/cpg_strip_plot.R
Produces a boxplot overlayed by a stripplot of a specific CpG given a matrix of beta-values. Ensure that the Beta-matrix has the CpG number as the row names
1 2 3 4 5 6 7 8 9 10 11 |
cpg_num |
CpG number (ID) |
betas |
Matrix of Beta with the CpG numbers as rownames |
factor_interest |
A vector based on which you want to stratify your plot |
enlarged |
Do you want an enlarged plot on the right side (TRUE or FALSE). Defaults to "auto" whereby the standard deviation will be calculated of the sample. If the sd is smaller than 0.015 the enlarged plot will be generated for visibility purposes. |
type |
Choose the type of plot you want: "boxplot", "SE", "CI" or simply "mean". Defaults to "boxplot". |
colors |
A vector containing the the colors to be utilized for the plot with the contrast of interest as names (default: uses ggplot's default coloring scheme). |
legend |
Boolean depicting whether a legend should be included (default: TRUE) |
y_lab |
A specific name for the y labels (default: "Beta") |
A boxplot overlayed by a stripplot of a specific CpG
Andrew Y.F. Li Yim
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.