R/generate_plots.R
plot_subset_individuals_history.Rd
Plot biomarker states and immune histories for a subset of individuals
plot_subset_individuals_history(
biomarker_states,
immune_histories,
subset,
demography,
removal = FALSE,
heatmap = FALSE
)
The reshaped data set containing biomarker quantities for individuals at all time steps for each biomarker
The reshaped data set containing immune history for individuals at all time steps for each exposure event
The number of individuals you want to plot
Tibble of removal time for each individual
Set to TRUE if individuals are removed during the simulation and removal time is present in demogrpahy; defaults to FALSE
if TRUE, returns a heatmap of all biomarker states over time. Overwise plots each biomarker as a line.
A plot of biomarker states and exposure histories for a subset of individuals is returned
plot_subset_individuals_history(example_biomarker_states,example_immune_histories,
3,example_demography)
#> Warning: Removed 37 rows containing missing values (`geom_line()`).