Skip to contents

Plot biomarker states and exposure histories for a subset of individuals

Usage

plot_subset_individuals_history(
  biomarker_states,
  exposure_histories,
  subset,
  demography,
  removal = FALSE
)

Arguments

biomarker_states

The reshaped data set containing biomarker quantities for individuals at all time steps for each biomarker

exposure_histories

The reshaped data set containing exposure history for individuals at all time steps for each exposure event

subset

The number of individuals you want to plot

demography

Tibble of removal time for each individual

removal

Set to TRUE if individuals are removed during the simulation and removal time is present in demogrpahy; defaults to FALSE

Value

A plot of biomarker states and exposure histories for a subset of individuals is returned

Examples

plot_subset_individuals_history(example_biomarker_states,example_exposure_histories,
3,example_demography)