Description Usage Arguments Value Examples
View source: R/covid_time_series.R
this function takes country and time interval, and draws a plot of confirmed cases, recovered people, and deaths in that interval.
1 2 3 4 5 | covid_time_series(
country = "Iran",
interval_start = "20-05-22",
interval_end = Sys.Date()
)
|
country |
country you're interested in its covid19 cases. Note that country input is case sensitive, for example "Iran". USA is present as "US" and UK is accessible as "United Kingdom". |
interval_start |
start date of interval. Put in "yy-mm-dd" format. Can be from "20-01-22" till now. |
interval_end |
(optional) end date of interval. if not specified defaults to today. |
a barplot of covid19 cases
1 2 3 4 5 | ## Not run:
covid_time_series(country = "Iran", interval_star = "20-03-26")
covid_time_series(country = "Iran", interval_star = "20-03-26", interval_end = "20-06-22")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.