autoplot.curve_params {serocalculator} | R Documentation |
graph antibody decay curves by antigen isotype
Description
graph antibody decay curves by antigen isotype
Usage
## S3 method for class 'curve_params'
autoplot(
object,
antigen_isos = unique(object$antigen_iso),
ncol = min(3, length(antigen_isos)),
...
)
Arguments
object |
a |
antigen_isos |
antigen isotypes to analyze (can be used to subset |
ncol |
how many columns of subfigures to use in panel plot |
... |
Arguments passed on to
|
Details
rows_to_graph
Note that if you directly specify rows_to_graph
when calling this function, the row numbers are enumerated separately for each antigen isotype; in other words, for the purposes of this argument, row numbers start over at 1 for each antigen isotype. There is currently no way to specify different row numbers for different antigen isotypes; if you want to do that, you will could call plot_curve_params_one_ab()
directly for each antigen isotype and combine the resulting panels yourself. Or you could subset curve_params
manually, before passing it to this function, and set the n_curves
argument to Inf
.
Value
a ggplot2::ggplot()
object
Examples
library(dplyr)
library(ggplot2)
library(magrittr)
curve = load_curve_params("https://osf.io/download/rtw5k/") %>%
filter(antigen_iso %in% c("HlyE_IgA", "HlyE_IgG")) %>%
slice(1:100, .by = antigen_iso) %>% # Reduce dataset for the purposes of this example
autoplot()
curve