Plot serological data in the format provided to the biokinetics model, with a smoothing function fitted.

plot_sero_data(
  data,
  tmax = 150,
  ncol = NULL,
  covariates = character(0),
  upper_censoring_limit = NULL,
  lower_censoring_limit = NULL
)

Arguments

data

A data.table with required columns time_since_last_exp, value and titre_type.

tmax

Integer. The number of time points in each simulated trajectory. Default 150.

ncol

Integer. Optional number of columns to display facets in.

covariates

Optional vector of covariate names to facet by (these must correspond to columns in the data.table)

upper_censoring_limit

Optional upper detection limit.

lower_censoring_limit

Optional lower detection limit.

Value

A ggplot2 object.