Skip to contents

Draw boxplots of relative log expression (log2 intensity minus row median) for each sample. Optionally color and group samples by a metadata variable.

Usage

plot_rle(exp, by = NULL)

Arguments

exp

A glyexp::experiment() object.

by

Grouping variable for samples. Can be a column name in sample_info or a vector/factor with length equal to the number of samples. When provided, samples are grouped along the x-axis and boxplots are colored by group.

Value

A ggplot object of RLE boxplots.

Examples

plot_rle(glyexp::toy_experiment)

plot_rle(glyexp::toy_experiment, by = "group")