Texas-Policy-Lab / COVID19

COVID19 Dashboard
2 stars 0 forks source link

Research tooltip #26

Closed Texas-Policy-Lab closed 4 years ago

Texas-Policy-Lab commented 4 years ago

Research different ways to add a tooltip to ggplot.

I think this will probably be possible, but I haven't ever done it before!

connorrothschild commented 4 years ago

Check out features/tooltip if you wanna see my progress; I first used plotly but the tooltips were ugly. I've since transitioned to ggiraph (girafe function) which seems pretty good so far. https://davidgohel.github.io/ggiraph/articles/offcran/shiny.html

The only problem I'm having is the geom_line isn't showing up.

Texas-Policy-Lab commented 4 years ago

BUG: State -Deaths plot isn't showing for some reason

Texas-Policy-Lab commented 4 years ago

Fixed bug. USA data API changed.

connorrothschild commented 4 years ago
* Added tooltip to states

* Fixed line not rendering issue

BUG: State -Deaths plot isn't showing for some reason

Looks like deaths is filled with NA; death has data (only after WHO declared pandemic)?

EDIT: Actually I'm not sure... What is the difference between death and deaths? in the state dataframe

Replacing deaths with death outputs this:

image
Texas-Policy-Lab commented 4 years ago

We want to use the deaths data, I have to delete death( I think it's from another dataset). Deaths is working for me since I updated the code. Did you pull the branch?

connorrothschild commented 4 years ago

Cool, working for me now!