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

betterCallSal

Travis build status

The goal of betterCallSal is to make you aware of what Covid-19 is doing to the world

Installation

You need to have R version 4.0.2

You can install the released version of betterCallSal from CRAN with:

install.packages("betterCallSal")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("zahrasalarian/betterCallSal")

Website

You may want to first check the website and see how to get started: https://zahrasalarian.github.io/betterCallSal/

Example

This is a basic example which shows you how to solve a common problem:

library(betterCallSal)
# Wrong format
period = c("5-6-2020","7-8-2020")
country = "US"
plot <- betterCallSal::drawCovidPlot(period,country)

####
# You Got error because your date format is not Correct
# Correct format
period = c("05-06-2020","07-08-2020")
country = "US"
plot <- betterCallSal::drawCovidPlot(period,country)

Lets see an example of world map

map <- betterCallSal::drawCovidMap("09-09-2020","Deaths")
map

You can also embed plots, for example:

p <- betterCallSal::drawCovidPlot(c("04-05-2020","06-05-2020"),"US")
p


zahrasalarian/betterCallSal documentation built on Jan. 1, 2021, 1:49 p.m.