View source: R/diff_expression.R
plot_within_level_sample_MAs | R Documentation |
For the given level, the gene-wise median over all samples is computed to obtain a reference sample. Then, each sample is plotted against the reference as MA-plot.
plot_within_level_sample_MAs(
vsd,
group,
level,
y_lim = 4,
rasterise = FALSE,
...
)
vsd |
An object generated by |
group |
A grouping variable, must be a column of |
level |
A level of the grouping variable |
y_lim |
Y-axis limits, the axis will run from |
rasterise |
Whether to rasterise the points using ggrastr. |
... |
Other parameters passed on to ggrastr::rasterise |
A list of ggplot objects of the ggplot2 package that contains for each sample of the specified level the the sample vs reference MA-plot.
library("DESeq2")
set.seed(1)
dds <- makeExampleDESeqDataSet(n=1000, m=4, interceptMean=10)
colData(dds)$type <- c("A","A","B","B")
vsd <- vst(dds)
plot_within_level_sample_MAs(vsd, group="type", level="A")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.