knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

COVID19bb

R build status License: GPL v3

Introduction

The goal of COVID19bb package, which is created by Yiwen Zhang, is to provide the relevant datasets and functions to run the COVID-19 Global Analysis Shiny Application. And the aim of the COVID-19 Global Analysis Shiny Application is to provide a concise and visual appealing way to explore the epidemic condition of the COVID-19.

The package consists of three datasets:

And there are three functions:

Installation

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("etc5523-2020/r-package-assessment-Yiwen-Zhang-259")

Launch the app

launch_app()

Shiny Application User Interface

Here are the UI of three main subpages:

Distribution Trend Table

Example

The dataset in package

This is a basic example which shows you the first five lines in covid_19_all data in this package:

library(COVID19bb)
library(kableExtra)

data(covid_19_all)

covid_19_all %>% 
  head(5) %>%
kable(booktabs = TRUE, caption = "COVID-19 Cases") 

## basic example code

The case trend in Hubei province

This is a basic example which shows you how to explore the case trend of COVID-19 in the whole world.

library(COVID19bb)
library(ggplot2)

    ggplot(data = covid_19_all) +
      geom_line(data = covid_19_all, aes(x = date, y = recovered), color = "green") +
      geom_line(data = covid_19_all, aes(x = date, y = deaths), color = "red") +
      geom_line(data = covid_19_all, aes(x = date, y = confirmed), color = "yellow") +
      ggtitle("Comparing COVID-19 trends across regions globally over time") +
      xlab('Dates') +
      ylab('Cases') 

Data Source

The dataset in this package is from:



etc5523-2020/COVID19bb documentation built on Jan. 9, 2022, 12:04 a.m.