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

Interactive plot: incidence2:incidence #415

Open
AleksandarMedarevic opened this issue Dec 6, 2024 · 1 comment
Open

Interactive plot: incidence2:incidence #415

AleksandarMedarevic opened this issue Dec 6, 2024 · 1 comment

Comments

@AleksandarMedarevic
Copy link

After running the code
p <- incidence( linelist, date_index = date_onset, interval = "weeks", groups = outcome)

I recived an error:

Error: object 'date_onset' not found

new_pages/interactive_plots.qmd

@AleksandarMedarevic
Copy link
Author

The solve of the error.
It might be closed.

p <- incidence2::incidence(
  linelist,
  date_index = "date_onset", # in quotation marks
  interval = "weeks", # in quotation marks
  groups = "outcome") # in quotation marks

plot(p, fill= "outcome")  # not interactive version 

plot(p, fill= "outcome") |> plotly::ggplotly() # interactive

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

1 participant