Graph antibody decay curves by antigen isotype

Description

Graph antibody decay curves by antigen isotype

Usage

## S3 method for class 'curve_params'
autoplot(
  object,
  method = c("graph.curve.params", "graph_seroresponse_model_1"),
  ...
)

Arguments

object a curve_params object (constructed using as_sr_params()), which is a data.frame() containing MCMC samples of antibody decay curve parameters
method

a character string indicating whether to use

additional arguments passed to the sub-function indicated by the method argument.

Details

Currently, the backend for this method is graph.curve.params(). Previously, the backend for this method was graph_seroresponse_model_1(). That function is still available if preferred.

Value

a ggplot2::ggplot() object

Examples

Code
library("serocalculator")


library(dplyr)
library(ggplot2)
library(magrittr)

curve <-
  serocalculator_example("example_curve_params.csv") |>
  read.csv() |>
  as_sr_params() |>
  filter(antigen_iso %in% c("HlyE_IgA", "HlyE_IgG")) |>
  autoplot()

curve