View source: R/make_cumulative_events.R
make_cumulative_events | R Documentation |
generic cumulative_events generator
make_cumulative_events(cases, dates, eventtype, alpha3, ProvinceStateName)
cases |
numeric vector |
dates |
vector |
eventtype |
character(1) should be "confirmed" or "deaths" |
alpha3 |
character(1) country code not checked |
ProvinceStateName |
character(1) |
a list with counts and dates
# ec = jhu_data() # ber = ec[which(ec$nuts_3 == "Bergamo"),] # mber = make_cumulative_events( cases = ber$cases, dates = ber$date, # eventtype = "confirmed", alpha3 = "ITA", ProvinceStateName = "Bergamo") # plot(mber)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.