knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
HesabaCovid is part of Hesaba Internship tasks. You can get up-to-date COVID-19 data, plot time series and world map.
You can install the released version of HesabaCovid from github with:
install.packages(“devtools”) devtools::install_github("TabaMojj/HesabaCovid", build_vignettes = TRUE)
You can get up-to-date COVID-19 data from Johns Hopkins University Center for Systems Science and Engineering (JHU CSSE). This dataset contains Country, Date, Deaths, Confiremed, Recovered and Cumulative data.
library(HesabaCovid) df <- getData() head(df)
Given a plot type and a date, this function can plot datas on world map. Plot type can be “Deaths” or “Confiremed”. Date must be in “YYYY-MM-DD” format.
plotWorld("Deaths", "2020-10-29")
You can plot time series for a country between two dates. Date must be in “YYYY-MM-DD” format.
plotTimeSeries("Iran", "2020-5-10", "2020-10-29")
You can use utils::vignette("HesabaCovid")
to see examples.
Also, you can visit HesabaCovid website for more information.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.