knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

HesabaCovid

License: MIT

HesabaCovid is part of Hesaba Internship tasks. You can get up-to-date COVID-19 data, plot time series and world map.

Installation

You can install the released version of HesabaCovid from github with:

install.packages(“devtools”)
devtools::install_github("TabaMojj/HesabaCovid", build_vignettes = TRUE)

Example

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")

More

You can use utils::vignette("HesabaCovid") to see examples.

Also, you can visit HesabaCovid website for more information.



TabaMojj/HesabaCovid documentation built on Dec. 31, 2020, 5:28 p.m.