corona_totals {corona}R Documentation

Plot total cases over time for a selected country.

Description

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

Usage

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

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

[Package corona version 0.3.0 Index]