powered by
Defaults to Italy, as this was our demonstration. Add a linear regression by specifying smooth=TRUE.
corona_totals( country = "Italy", daystart = 60, dayend = 76, pdf = FALSE, log = FALSE, smooth = FALSE, prefix = "" )
Text name of country (in owid frame)
first day
last day to plot
TRUE will print value
TRUE will take base 10 logarithm of y-axis values
TRUE will try to fit linear model (use with logarithm)
defaults to ''; a text value will be prefixed to PDF name after country_ name.
# NOT RUN { corona_totals( country='Italy', daystart=60, dayend=76, log=TRUE, smooth=TRUE ) corona_totals(country='United Kingdom', log=TRUE, smooth=TRUE) # }
Run the code above in your browser using DataLab