Skip to contents

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.

Value

a ggplot2::ggplot() object

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.

Examples

# \donttest{
library(dplyr)
#> 
#> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’:
#> 
#>     filter, lag
#> The following objects are masked from ‘package:base’:
#> 
#>     intersect, setdiff, setequal, union
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

# }