seroprevalence.plot: Plot the seroprevalence by age

View source: R/seroprevalence_plot.R

seroprevalence.plotR Documentation

Plot the seroprevalence by age

Description

Plot the mean and 95 % confidence interval of the seroprevalence by age-class. Accepts as an input a SeroData object. If multiple category are defined, it will also compute the seroprevalence for each category.

Usage

seroprevalence.plot(serodata, age_class = 10, YLIM = 1, ...)

Arguments

serodata

An object of the class SeroData.

age_class

Integer. The length in years of the age classes. Default = 10.

YLIM

Upper limit of the y-axis. Default = 1. The lower limit is set to 0.

Value

a list with plots of the seroprevalence for each category, or one plot if only one category is defined.

Author(s)

Nathanael Hoze nathanael.hoze@gmail.com

Examples


dat  = data("one_peak_simulation")
seroprevalence.plot(serodata = dat)


nathoze/Rsero documentation built on Dec. 1, 2024, 6:39 p.m.