Skip to contents

Generates a plot of pH values over time for different subjects/groups, highlighting a specified pH threshold.

Usage

plot_pH_time(
  res,
  ph_threshold = 5.4,
  show_id = TRUE,
  stratify_by = "None",
  showAvg = FALSE
)

Arguments

res

Data frame containing pH data.

ph_threshold

pH threshold to highlight on the plot (default is 5.4).

Value

A ggplot2 object representing the pH vs time plot.

Author

Omar I. Elashkar