Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiyangt/slcorona
https://github.com/thiyangt/slcorona
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thiyangt/slcorona
- Owner: thiyangt
- Created: 2020-03-29T16:01:18.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-30T03:12:55.000Z (almost 5 years ago)
- Last Synced: 2024-10-30T04:59:03.662Z (2 months ago)
- Language: R
- Size: 47.9 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
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")
````