plot_line_by_date: Plot line chart of Covid19 cases

Description Usage Arguments Value Examples

View source: R/plot_line_by_date.R

Description

Plots the line chart of regional Covid19 cases over the period specified by startDate and endDate (format: YYYY-MM-DD). The default argument value for region is 'all', showing the total number of Covid19 cases in BC.

Usage

1
plot_line_by_date(startDate, endDate, region = "all")

Arguments

startDate

string the start date of the period (no earlier than '2020-01-29')

endDate

string the end date of the period (no later than today)

region

vector of characters. Default value is character 'all' - displaying all regions. Other available values: combination of list of strings from available regions - Fraser, Vancouver Coastal, Vancouver Island, Interior, Northern, Out of Canada

Value

ggplot object

Examples

1
2
plot_line_by_date("2021-01-01", "2021-12-31")
plot_line_by_date("2021-01-01", "2021-12-31", region = c('Fraser'))

UBC-MDS/rbccovideda documentation built on Feb. 5, 2022, 8:13 a.m.