Create a barplot of library sizes per sample, optionally using effective library sizes.
barplotExp(x, palette, main, selectOrder, effecLibSize)
A "ggplot" object showing per-sample barplots of library size in millions.
A DGEList object from "edgeR".
Character. Name of a discrete color palette from the "paletteer" package.
Character. Title for the barplot.
Character. Either "Groups" (order samples by group) or "Samples" (order by sample name).
Logical. If TRUE, use effective library size (norm factors × raw size); otherwise use raw size.
This function extracts library size information from an "edgeR" "DGEList", computes effective library sizes if requested, orders samples by group or name, and plots library sizes (in millions) colored by group.
Extracts or computes (effecLibSize = TRUE) the library size for each sample.
Orders samples by group or sample name per selectOrder.
Plots bar heights as library size (×10^6) with white fill and colored borders.