https://github.com/juan-kabbali/covid-dashboard
covid interactive dashboards written in R with Shiny
https://github.com/juan-kabbali/covid-dashboard
Last synced: 2 months ago
JSON representation
covid interactive dashboards written in R with Shiny
- Host: GitHub
- URL: https://github.com/juan-kabbali/covid-dashboard
- Owner: juan-kabbali
- License: gpl-2.0
- Created: 2020-11-20T14:02:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-12T15:58:21.000Z (over 4 years ago)
- Last Synced: 2024-03-23T15:27:10.459Z (about 1 year ago)
- Language: R
- Size: 7 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COVID-19 Dashboard with R Shinny
This little project consists of the development of an interactive dashboard for visualizing different COVID indicators
at France such as:
* number of deaths
* number of positive cases
* number of hospitalizations
* ...All that, observed from different analyses axes like **age**, **department**, **region** and **date**.
# How to install it
1. Clone the repository ``git clone https://github.com/juan-kabbali/covid-dashboard.git``
2. Your R version must be ``r >= 3.6``
3. Install required packages
```r
install.packages(c("shiny","DBI","RMySQL","plotly","rjson"))
```
4. Import [this](data/MySQL_db_dump.sql) MySQL database
5. Modify [MySQL ENV](conf/global.R) variables according to your database instance
```r
host = "localhost"
dbname = "covid"
username = "root"
password = "shhh!"
```
6. Set up the encoding running ``options(encoding = "UTF-8")`` on your R console
7. Run the app and lets Analyse
```shell
# OPTION 1
# JUST RUN app.R FILE
# OPTION 2
# EXECUTE
R -e "shiny::runApp('covid-dashboard')"
````You can check all those steps in the following [video tutorial](https://www.youtube.com/watch?v=GVx7z2S04QI&feature=youtu.be)