epiverse-trace / epidemics

A library of published compartmental epidemic models, and classes to represent demographic structure, non-pharmaceutical interventions, and vaccination regimes, to compose epidemic scenarios.
https://epiverse-trace.github.io/epidemics/
Other
8 stars 2 forks source link

Add easier plotting options (geoms?) for events #98

Open pratikunterwegs opened 11 months ago

pratikunterwegs commented 11 months ago

This issue is to request easier ways to add events such as vaccination regimes and interventions to plots of epidemic curves.

The current best method to do this is to manually create geom_rect or geom_vline along with annotate(geom = "text") to add representations of when these events are active, to epidemic curve plots made with ggplot2.

The new functionality could be in the form of custom geoms as documented in this book.