R/AllGenerics.R
, R/plotAssayRle.R
plotAssayRle-methods.Rd
Plot RLE for a given assay within a SummarizedExperiment
plotAssayRle(x, ...)
# S4 method for class 'SummarizedExperiment'
plotAssayRle(
x,
assay = "counts",
colour,
fill,
rle_group,
by_x,
n_max = Inf,
trans = NULL,
...
)
A SummarizedExperiment object
Passed to geom_boxplot
The assay to plot
Column from colData(x)
to outline the boxplots
Column from colData(x)
to fill the boxplots
Column from colData(x)
to calculate RLE within groups
Commonly an alternative sample label.
Boxplots will be drawn by this grouping variable from
colData(x)
. If not specified, the default values will be colnames(x)
Maximum number of points to plot
character(1). Numerical transformation to apply to the data prior to RLE calculation
A ggplot2 object
Uses ggplot2 to create an RLE plot for the selected assay. Any numerical
transformation prior to performing the RLE can be specified using the
trans
argument
data("se")
se$treatment <- c("E2", "E2", "E2", "E2DHT", "E2DHT", "E2DHT")
se$sample <- colnames(se)
## A conventional RLE Plot using all samples
plotAssayRle(se, trans = "log1p", fill = "treatment")
## Calculate RLE within groups
plotAssayRle(se, trans = "log1p", fill = "treatment", rle_group = "treatment")
# Or show groups combined
plotAssayRle(se, trans = "log1p", fill = "treatment", by_x = "treatment")