time_series_plot: Time Series Plot

Description Usage Arguments Value Note

View source: R/timeseriesplot.r

Description

This function creates a time series plot using gg plot of the date range selected, and plots the number of people who have died or been infected by COVID-19 in a specified region/regions.

Usage

1
time_series_plot(apikey='4T9GEYHZ7PE9w8H29xynebW3L', data, start_date, end_date, region1, region2=NULL, region3=NULL,region4=NULL,region5=NULL,region6=NULL,region7=NULL,region8=NULL,region9=NULL,region10=NULL,region11=NULL,region12=NULL,region13=NULL,region14=NULL,region15=NULL,region16=NULL)

Arguments

apikey

API token from api.pify

data

character. The COVID-19 you wish to visualize. Use 'infected count', 'infected', 'deceased count' or 'deceased'.

start_date

The start date of the time series you wish to visualize. Written in yyyy-mm-dd format.

end_date

The end date of the time series you wish to visualize. Written in yyyy-mm-dd format.

region1

The region you wish to visualize in the this time series plot, written in string format.

region2

The other regions you wish to visualize in the this time series plot written in string format. Defaults to 'NULL'

region3

The other regions whose COVID-19 data you wish to visualize this time series plot, written in string format. Defaults to 'NULL'

region4

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region5

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region6

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region7

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region8

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region9

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region10

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region11

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region12

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region13

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region14

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region15

The other regions whose COVID-19 data you wish to visualize in this time series plot, written in string format. Defaults to 'NULL'

region16

The other regions whose COVID-19 data you wish to visualize in this time series plot , written in string format. Defaults to 'NULL'

Value

a GG plot time series of the date range, data and regions selected

Note

Regions must be written in full names starting with a capital letter


Me222CYX/CovCan documentation built on Feb. 25, 2021, 2:02 p.m.