https://github.com/eeholmes/cov19
Package for exploring the CoV-19 data
https://github.com/eeholmes/cov19
Last synced: 6 months ago
JSON representation
Package for exploring the CoV-19 data
- Host: GitHub
- URL: https://github.com/eeholmes/cov19
- Owner: eeholmes
- Created: 2020-03-22T20:12:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-17T05:27:41.000Z (almost 5 years ago)
- Last Synced: 2025-06-04T06:51:25.108Z (about 1 year ago)
- Language: HTML
- Homepage: https://eeholmes.github.io/CoV19/
- Size: 2.93 GB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
title: "CoV19"
author: Eli Holmes
output: github_document
---
This is a package for exploring some of the CoV-19 data. The world data is downloaded from JHU. The US data is downloaded from JHU and CovidTracking. The Italy data is downloaded from the Italian CDC (Protezione Civile)
Sources:
* https://github.com/CSSEGISandData/COVID-19
* https://covidtracking.com/api/
* https://github.com/pcm-dpc/COVID-19
To install the package
```
library(devtools)
install_github("eeholmes/CoV19")
```
To get the data, type any of these on command line. After loading.
```
states
italy
world
```
Use `head()` to look at it. Should be pretty self-evident what it is.
# Functions
* `regions()` will show you the regions in each data set.
* `plot2()` a basic plot of total, hospitalized, and deaths. First argument is a data object (states, italy, world or subset of these) and second argument is a region (can be partial). Use ?plot2 to read the help page.
# Plots
```{r, message=FALSE, warning=FALSE}
library(CoV19)
plot2(italy, "Lomb", decorate=TRUE)
```
```{r, message=FALSE, warning=FALSE}
plot2(states, c("WA","CA"))
```
```{r, message=FALSE, warning=FALSE}
plot2(states, c("NY","NJ","PA","MA"))
```
Something is odd with the Hubei data in the JHU data set.
```{r, message=FALSE, warning=FALSE}
plot2(world, "Hubei China", decorate=TRUE)
```