InfeVacPlot: Vaccination and Infection Plotting

Description Usage Arguments Value References Examples

View source: R/InfeVacPlot.R

Description

A function that generates the plotting demonstrating the correlation of COVID-19 vaccination and infection in Canada.

Usage

1
2
3
4
5
InfeVacPlot(
  vacPeopleNum = FALSE,
  dailyInfectNum = FALSE,
  dailyDeathNum = FALSE
)

Arguments

vacPeopleNum

the Boolean indicates whether to include the line representing the number of total vaccinated people in the line plot.

dailyInfectNum

the Boolean indicates whether to include the line representing the number of daily infection in the line plot.

dailyDeathNum

the Boolean indicates whether to include the line representing the number of daily death in the line plot.

Value

Returns a line plot that demonstrates the correlation of COVID-19 vaccination(vaccinated & fully vaccinated) and infection(infection & death) in Canada.

References

H. Wickham. Reshaping data with the reshape package. Journal of Statistical Software, 21(12), 2007.

H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016.

Ponce et al. (2021). covid19.analytics: An R Package to Obtain, Analyze and Visualize Data from the Coronavirus Disease Pandemic. Journal of Open Source Software, 6(59), 2995. https://doi.org/10.21105/joss.02995

R Core Team (2021). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL https://www.R-project.org/.

Wickham et al., (2019). Welcome to the tidyverse. Journal of Open Source Software, 4(43), 1686, https://doi.org/10.21105/joss.01686

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#Example 1:
#Generate the plot with only one line representing the number of vaccinated
#people.

InfeVacPlot(TRUE)

#Example 2:
#Generate the plot with two lines representing the number of total vaccinated
#people and daily death respectively.

InfeVacPlot(TRUE, FALSE, TRUE)

#Example 2:
#Generate the plot with three lines representing the number of total
#vaccinated people,daily infected and daily death.

InfeVacPlot(TRUE, TRUE, TRUE)

RicoZong/covid19Canada documentation built on Dec. 18, 2021, 10:50 a.m.