Skip to contents

Graph estimated antibody decay curve

Usage

graph.curve.params(
  curve_params,
  antigen_isos = unique(curve_params$antigen_iso),
  verbose = FALSE,
  show_quantiles = TRUE,
  show_all_curves = FALSE,
  alpha_samples = 0.3
)

Arguments

curve_params

a data.frame() containing MCMC samples of antibody decay curve parameters

antigen_isos

antigen isotypes

verbose

verbose output

show_quantiles

whether to show point-wise (over time) quantiles

show_all_curves

whether to show individual curves under quantiles

alpha_samples

alpha parameter passed to ggplot2::geom_line (has no effect if show_all_curves = FALSE)

Value

a ggplot2::ggplot() object

Examples

curve <-
  typhoid_curves_nostrat_100 |>
  dplyr::filter(antigen_iso %in% c("HlyE_IgA", "HlyE_IgG"))

plot1 <- graph.curve.params(curve)

print(plot1)


plot2 <- graph.curve.params(curve, show_all_curves = TRUE)
show(plot2)