plot_libsize: Make a ggplot graph of library sizes.

View source: R/plot_bar.R

plot_libsizeR Documentation

Make a ggplot graph of library sizes.

Description

It is often useful to have a quick view of which samples have more/fewer reads. This does that and maintains one's favorite color scheme and tries to make it pretty!

Usage

plot_libsize(
  data,
  condition = NULL,
  colors = NULL,
  text = TRUE,
  order = NULL,
  plot_title = NULL,
  yscale = NULL,
  expt_names = NULL,
  label_chars = 10,
  ...
)

Arguments

data

Expt, dataframe, or expressionset of samples.

condition

Vector of sample condition names.

colors

Color scheme if the data is not an expt.

text

Add the numeric values inside the top of the bars of the plot?

order

Explicitly set the order of samples in the plot?

plot_title

Title for the plot.

yscale

Whether or not to log10 the y-axis.

expt_names

Design column or manually selected names for printing sample names.

label_chars

Maximum number of characters before abbreviating sample names.

...

More parameters for your good time!

Value

a ggplot2 bar plot of every sample's size

See Also

[ggplot2] [prettyNum] [plot_sample_bars()]

Examples

## Not run: 
 libsize_plot <- plot_libsize(expt = expt)
 libsize_plot  ## ooo pretty bargraph

## End(Not run)

elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.