Plots measured antibody measurements and known infection histories for all individuals, faceted by sample time (multi-antigen panel) or biomarker_id variable (longitudinal single antigen)
plot_antibody_data(
antibody_data,
possible_exposure_times,
n_indivs,
infection_histories = NULL,
study_design = "cross-sectional",
measurement_ranges = NULL
)the data frame of antibody data
the vector of times at which individuals could be infected
either the number of individuals to sample at random, or a vector of individual IDs to plot
optional infection-history matrix with rows in the same individual order as `antibody_data`
default "cross-sectional" facets by sample time. "longitudinal" gives sample time on the x-axis and colours by `biomarker_id`
data frame or tibble stating for each `biomarker_group` the `min_measurement` and `max_measurement`. If NULL, this is extracted from `antibody_data`
A ggplot object showing the antibody measurements and, when supplied, known infection times.
Other infection_history_plots:
calculate_infection_history_statistics(),
plot_antibody_predictions(),
plot_cumulative_infection_histories(),
plot_estimated_antibody_model(),
plot_individual_number_infections(),
plot_infection_history_chains_indiv(),
plot_infection_history_chains_time(),
plot_infection_history_posteriors(),
plot_model_fits(),
plot_total_number_infections()