Skip to content

chaoshengt/nCov2019

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An R package with real-time data from 4 sources + an Shiny app

Data Sources (updated daily)

  • API to Tencent SARS-COV-2 website. Updated several times a day, the Tencent website relies on official data obtained from the Chinese provincial health agencies, China National Health Commission (CNHC), the World Health Organization (WHO), and public health agencies in other countries.
  • CNHC, which is official historical statistics for the 34 Chinese provinces and special districts.
  • Dingxiangyuan which has been continuously aggregating official data from provincial and city health agencies and the CNHC.
  • Wuhan-2019-nCoV GitHub repository. It derives data from the literature for December 1, 2019, to January 10, 2020, after which it relies on the Chinese news aggregator Toutiao API. This GitHub repository includes historical data for Chinese cities as well as 43 countries.

For more details see our vignette, Preprint, and Shiny app.

✍️ Authors

Guangchuang YU

School of Basic Medical Sciences, Southern Medical University

https://guangchuangyu.github.io

Xijin Ge (Shiny app)

Department of Mathematics and Statistics, South Dakota State University

https://www.sdstate.edu/directory/xijin-ge

If you use nCov2019, please cite the following preprint:

Tianzhi Wu, Erqiang Hu, Xijin Ge*, Guangchuang Yu*. An R package and a website with real-time data on the COVID-19 coronavirus outbreak. medRxiv, 2020.02.25.20027433. doi: https://doi.org/10.1101/2020.02.25.20027433

⏬ Installation

Get the development version from github:

## install.packages("remotes")
remotes::install_github("GuangchuangYu/nCov2019")
  • get_nCov2019() to query online latest information
  • load_nCov2019() to get historical data
  • summary and [ to access data
  • plot to present data on map
  • dashboard(lang = 'en', remote = TRUE) to open Shiny app dashboard

🎨 Example

Run the script example.R in R using source("example.R"), will produce the following figure:

📖 Documents

📈 Shiny Apps that use nCov2019

💖 Collected in resource list

About

query stats of infected coronavirus cases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 98.5%
  • Other 1.5%