Learn R Programming

serocalculator (version 1.4.0)

autoplot.curve_params: Graph antibody decay curves by antigen isotype

Description

Graph antibody decay curves by antigen isotype

Usage

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

Value

a ggplot2::ggplot() object

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

  • graph.curve.params() (default) or

  • graph_seroresponse_model_1() (previous default) as the graphing method.

...

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.

Examples

Run this code
# \donttest{
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
# }

Run the code above in your browser using DataLab