current_data_barchart: Current Data Bar CHart

Description Usage Arguments Value Note

View source: R/currentdatabar.r

Description

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

Usage

1
current_data_barchart(token='4T9GEYHZ7PE9w8H29xynebW3L', data, 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

token

apikey used to access data'

data

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

region1

The region you wish to visualize in the this current data bar chart, written in string format.

region2

The other regions you wish to visualize in this bar chart written in string format. Defaults to 'NULL'

region3

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region4

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region5

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region6

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region7

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region8

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region9

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region10

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region11

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region12

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region13

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region14

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region15

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

region16

The other regions whose COVID-19 data you wish to visualize in the #'this comparative bar chart, written in string format. Defaults to 'NULL'

Value

a GG plot bar chart of the current COVID-19 data for the specified regions

Note

Regions must be written in full names


Graham693/CovCan-R_Package documentation built on Feb. 25, 2021, 2:01 p.m.