Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thiyangt/slcorona


https://github.com/thiyangt/slcorona

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

        

---
output: md_document
---

# slcorona

Daily summary of the confirmed Coronavirus (COVID-19) cases in Sri Lanka

## Installation

You could install the development version from Github using

```{r}
# install.packages("devtools")
# devtools::install_github("thiyangt/slcorona")
library(slcorona)
```

## Example

```{r}
library(slcorona)
## basic example code
data(newpatients)
head(newpatients)
```

## Visualization

```{r}
library(ggplot2)
ggplot(newpatients, aes(y=New_Patients, x=Date)) + geom_bar(stat="identity", fill="#1b9e77")
````

```{r}
library(ggplot2)
ggplot(newpatients, aes(y=cumsum(New_Patients), x=Date)) + geom_line() + ylab("Cumulative count")
````