• Stars
    star
    435
  • Rank 96,213 (Top 2 %)
  • Language
    R
  • Created about 4 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

query stats of infected coronavirus cases

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

Please visit https://github.com/YuLab-SMU/nCov2019 for an up-to-date version.

This package is one of the earliest R packages that designed to query COVID data. It is available since Jan. 2020, at the time there were few data resources available (see our blog post (in Chinese) (Feb. 03, 2020) and another blog post by third party (in English) (Feb. 11, 2020)).

🏠 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 paper:

Wu T, Hu E, Ge X*, Yu G*. 2021. nCov2019: an R package for studying the COVID-19 coronavirus pandemic. PeerJ 9:e11421 https://doi.org/10.7717/peerj.11421

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

More Repositories

1

hexSticker

✨ Hexagon sticker in R
R
708
star
2

badger

Badge for R Package
R
187
star
3

ggimage

🎨 Use Images in ggplot2
R
168
star
4

ggplotify

ggplot everything
R
99
star
5

biobabble

公众号:biobabble
R
71
star
6

emojifont

🍭Emoji and fontawesom in both base and ggplot2 graphics
R
67
star
7

scatterpie

🎨 scatter pie plot
R
55
star
8

yyplot

Guangchuang Yu's Plot Utilities
R
49
star
9

cv

Guangchuang Yu's CV
HTML
45
star
10

meme

create meme
R
45
star
11

gglayer

provide extra layers for ggplot2
R
35
star
12

shadowtext

shadow text for grid and ggplot2
R
34
star
13

enrichment4GTEx_clusterProfiler

reproduce the functional enrichment analysis presented in GTEx paper using clusterProfiler/DOSE
31
star
14

GuangchuangYu.github.io

Guangchuang's blog
HTML
25
star
15

ggtree-current-protocols

Using ggtree to Visualize Data on Tree-Like Structure
21
star
16

rvcheck

✅R/Package Version Check
R
21
star
17

chinamap

R
20
star
18

plotTree-ggtree

ggtree version of plotTree.R
R
17
star
19

statistics_notes

Y叔的统计笔记
HTML
15
star
20

ideogram

R
14
star
21

dlstats

⬇️ download stats of R packages
R
12
star
22

mlass

💥Machine Learning clASS
R
12
star
23

plotting_tree_with_data

Two methods for mapping and visualizing associated data on phylogeny using ggtree
R
12
star
24

course_bioinfo_training

R
10
star
25

base2grob

Makefile
8
star
26

mirrorselect

To help select CRAN and Bioconductor mirrors.
R
8
star
27

software

information of my software packages
HTML
8
star
28

frog_tree

7
star
29

pathway-analysis-workshop

HTML
3
star
30

rcliutils

R
2
star
31

bitr

Biological Id TranslatoR
R
1
star
32

skleid

State Key Laboratory of Emerging Infectious Diseases
R
1
star
33

map_data

1
star
34

my_aur_repo

Shell
1
star
35

doseplot

Before there was enrichplot
R
1
star
36

GuangchuangYu

Background information about me.
1
star