covid_time_series: time series of coronavirus cases in a given interval

Description Usage Arguments Value Examples

View source: R/covid_time_series.R

Description

this function takes country and time interval, and draws a plot of confirmed cases, recovered people, and deaths in that interval.

Usage

1
2
3
4
5
covid_time_series(
  country = "Iran",
  interval_start = "20-05-22",
  interval_end = Sys.Date()
)

Arguments

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.

Value

a barplot of covid19 cases

Examples

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)

taenayat/covid19Viewer documentation built on Dec. 31, 2020, 8:32 a.m.