rate_plot {ceas}R Documentation

Rate plot

Description

Generate OCR and ECAR plots

Usage

rate_plot(
  seahorse_rates,
  measure = "OCR",
  assay = "MITO",
  error_bar = "ci",
  conf_int = 0.95,
  group_label = "Experimental group"
)

Arguments

seahorse_rates

data.table Seahorse OCR and ECAR rates (imported using read_data function)

measure

Whether to plot "OCR" or "ECAR"

assay

What assay to plot (e.g. "MITO" or "GLYCO")

error_bar

Whether to plot error bars as standard deviation ("sd") or confidence intervals ("ci")

conf_int

The confidence interval percentage. Should be between 0 and 1

group_label

Label for the experimental group to populate the legend title

Value

a ggplot

Examples

rep_list <- system.file("extdata", package = "ceas") |>
  list.files(pattern = "*.xlsx", full.names = TRUE)
seahorse_rates <- read_data(rep_list, sheet = 2)
rate_plot(seahorse_rates, measure = "OCR", error_bar = "ci", conf_int = 0.95)

[Package ceas version 1.0.0 Index]