This data source contains detailed city level data in China, and country level data in worldwide.
National Health Commission of the People’s Republic of China
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.
r
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.
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
Get the development version from github:
## install.packages("remotes")
remotes::install_github("GuangchuangYu/nCov2019")
get_nCov2019()
to query online latest informationload_nCov2019()
to get historical datanCov2019_set_country()
to set country optionssummary
and [
to access dataplot
to present data on mapdashboard()
to open Shiny app dashboardRun the script example.R in R using source("example.R")
, will produce the following figure:
nCov2019
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.