plot_pct_kept: Make a ggplot graph of the percentage/number of reads...

View source: R/plot_bar.R

plot_pct_keptR Documentation

Make a ggplot graph of the percentage/number of reads kept/removed.

Description

The function expt_exclude_genes() removes some portion of the original reads. This function will make it possible to see what is left.

Usage

plot_pct_kept(
  data,
  row = "pct_kept",
  condition = NULL,
  colors = NULL,
  names = NULL,
  text = TRUE,
  plot_title = NULL,
  yscale = NULL,
  ...
)

Arguments

data

Dataframe of the material remaining, usually expt$summary_table

row

Row name to plot.

condition

Vector of sample condition names.

colors

Color scheme if the data is not an expt.

names

Alternate names for the x-axis.

text

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

plot_title

Title for the plot.

yscale

Whether or not to log10 the y-axis.

...

More parameters for your good time!

Value

a ggplot2 bar plot of every sample's size

See Also

[plot_sample_bars()]

Examples

## Not run: 
 kept_plot <- plot_pct_kept(expt_removed)
 kept_plot  ## ooo pretty bargraph

## End(Not run)

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