Skip to contents

Create a dot plot with error bars showing the difference in charging ratio between two conditions for each tRNA. Consumes the tibble returned by compute_charging_diffs().

Usage

plot_charging_diffs(data, point_size = 2.5)

Arguments

data

A tibble from compute_charging_diffs() with at least ref (factor), diff, and se_diff columns.

point_size

Numeric size for ggplot2::geom_point(). Default 2.5.

Value

A ggplot object.

Examples

df <- tibble::tibble(
  ref = forcats::fct_inorder(paste0("tRNA-", 1:5)),
  diff = c(-0.1, -0.05, 0.02, 0.08, 0.15),
  se_diff = rep(0.03, 5)
)
plot_charging_diffs(df)