Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put geom_event() function in {epikit} #306

Open
nsbatra opened this issue Sep 18, 2022 · 1 comment
Open

put geom_event() function in {epikit} #306

nsbatra opened this issue Sep 18, 2022 · 1 comment

Comments

@nsbatra
Copy link
Collaborator

nsbatra commented Sep 18, 2022

Idea for wrapper package, or for Epi R Handbook section

Make it easy to add notable events onto an ggplot epicurve. So for example, to add vertical lines for events like "vaccination campaign begins" or "social distancing order".

Perhaps a geom_event() function that accepts:

  • a date
  • string to display,
  • string wrap length,
  • text color
  • height (% of plot height)
  • line type (e.g. dashed)
@aspina7 aspina7 changed the title idea for wrapper put geom_event() function in {epikit} Sep 18, 2022
@aspina7
Copy link
Member

aspina7 commented Sep 18, 2022

cross-reference with #279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants