Skip to content
query stats of infected coronavirus cases
R Other
  1. R 98.5%
  2. Other 1.5%
Branch: master
Clone or download

Latest commit

timze timze
timze and timze update;
Latest commit 677084b Apr 8, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R fix; Correct the virus name in the comment. Apr 8, 2020
inst fix; Mar 22, 2020
man update; Apr 8, 2020
vignettes update Readme.md Mar 20, 2020
.Rbuildignore figure Mar 13, 2020
.gitignore update vignette Mar 12, 2020
DESCRIPTION update; Apr 8, 2020
Makefile example in README Mar 13, 2020
NAMESPACE feat: add oversea province data and translation Mar 20, 2020
README.md update README.md Mar 20, 2020
example.R update Readme.md Mar 20, 2020
nCov2019.jpg update Readme.md Mar 20, 2020

README.md

nCov2019: An R package with real-time data, historical data and Shiny app

🏠 Data Sources

Real-time data

Historical data (three public data sources):

  1. Wuhan-2019-nCoV GitHub repository.

    • This data source contains detailed city level data in China, and country level data in worldwide.
  2. National Health Commission of the People’s Republic of China

    • This data source contains province level data in China.
  3. DXY.cn. Pneumonia. 2020.

    • We collect historical city level data in China from this source.
  4. 今日头条

    • We collect historical province level data for oversea countries form this source. (Start from 2020-03-15)

      The user can obtain the historical provincial data in China, South Korea, United States, Japan, Iran, Italy, Germany and United Kingdom now.

      For example, the below will return the historical data for Italy.

      library(nCov2019)
      nCov2019_set_country(country = 'Italy') 
      x['province'] # this will return Italy data only.

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

✍️ Authors

If you use nCov2019, please cite the following preprint:

Tianzhi Wu, Erqiang Hu, Xijin Ge*, Guangchuang Yu*. Open-source analytics tools for studying 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
  • nCov2019_set_country() to set country options
  • summary and [ to access data
  • plot to present data on map
  • dashboard() 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

You can’t perform that action at this time.