-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
71 lines (55 loc) · 1.72 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# betterCallSal
<!-- badges: start -->
[![Travis build status](https://travis-ci.com/zahrasalarian/betterCallSal.svg?branch=master)](https://travis-ci.com/zahrasalarian/betterCallSal)
<!-- badges: end -->
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](https://CRAN.R-project.org) with:
``` r
install.packages("betterCallSal")
```
And the development version from [GitHub](https://github.com/) with:
``` r
# 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:
```{r example}
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
```{r worldMap, warning=FALSE, error=FALSE}
map <- betterCallSal::drawCovidMap("09-09-2020","Deaths")
map
```
## You can also embed plots, for example:
```{r plot, echo = FALSE}
p <- betterCallSal::drawCovidPlot(c("04-05-2020","06-05-2020"),"US")
p
```