corona_totals: Plot total cases over time for a selected country.

Description Usage Arguments Examples

Description

Defaults to Italy, as this was our demonstration. Add a linear regression by specifying smooth=TRUE.

Usage

1
2
3
4
5
6
7
8
9
corona_totals(
  country = "Italy",
  daystart = 60,
  dayend = 76,
  pdf = FALSE,
  log = FALSE,
  smooth = FALSE,
  prefix = ""
)

Arguments

country

Text name of country (in owid frame)

daystart

first day

dayend

last day to plot

pdf

TRUE will print value

log

TRUE will take base 10 logarithm of y-axis values

smooth

TRUE will try to fit linear model (use with logarithm)

prefix

defaults to ”; a text value will be prefixed to PDF name after country_ name.

Examples

1
2
corona_totals( country='Italy', daystart=60, dayend=76, log=TRUE, smooth=TRUE ) 
corona_totals(country='United Kingdom', log=TRUE, smooth=TRUE)

corona documentation built on Oct. 23, 2020, 7:15 p.m.