Skip to content

Commit

Permalink
Updated code to work with current packages
Browse files Browse the repository at this point in the history
  • Loading branch information
asheshwor committed Jan 28, 2024
1 parent 4025a53 commit 3a20ab8
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 51,603 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ This is a simple implementation of Shiny dashboard to explore the [Nepal earthqu

You can try the app live at: [https://asheshwor.shinyapps.io/np-quake](https://asheshwor.shinyapps.io/np-quake).

You can also run the app locally in RStudio by using the following code.
Alternatively, you can also run the app locally in RStudio by using the following code.

```R
## Install missing packages
packagesRequired <- c("shinydashboard", "leaflet", "dplyr",
"reshape2", "scales", "ggplot2",
"tidyverse", "scales", "ggplot2",
"data.table", "rgdal", "jsonlite",
"shiny")
packagesToInstall <- packagesRequired[!(packagesRequired %in%
Expand All @@ -36,7 +36,8 @@ I am not an earthquake expert. This is not at an attempt to predict aftershock e
* dplyr
* scales
* ggplot2
* reshape2
* --reshape2--
* tidyverse
* data.table
* rgdal
* jsonlite
Expand All @@ -50,4 +51,4 @@ Full source code is available from the following github repo: [https://github.co
**Earthquake data:** This app uses earthquake data from USGS [http://earthquake.usgs.gov/earthquakes/feed/v1.0/csv.php](http://earthquake.usgs.gov/earthquakes/feed/v1.0/csv.php)
**Fatalities, injuries and damage data:** Ministry of Home Affairs (MoHA)/National Emergency Operation Center (NEOC) official figures for casualties and damages [5 June update] [MoHA/NEOC official figures Google spreadsheet link](https://docs.google.com/spreadsheets/d/1MCsMtcfN8jwGg4qdzYZCKyxpYp8cdqRSrEpF1WpR6ZE/edit#gid=1367273225)
**Nepal districts map geojson file:** Shared under MIT license by Saugat Acharya [https://github.com/mesaugat/geoJSON-Nepal](https://github.com/mesaugat/geoJSON-Nepal)
**Map data:** The maps are generated using [leaflet for R](https://rstudio.github.io/leaflet/). Map tiles from [Mapbox](https://www.mapbox.com/). Mapbox uses map data from [Open Street Maps](http://www.openstreetmap.org/).
**Map data:** The maps are generated using [leaflet for R](https://rstudio.github.io/leaflet/). Map tiles from [Mapbox](https://www.mapbox.com/). Mapbox uses map data from [Open Street Maps](http://www.openstreetmap.org/).
11 changes: 6 additions & 5 deletions about.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<p>This is a simple implementation of Shiny dashboard to explore the <a href="http://en.wikipedia.org/wiki/April_2015_Nepal_earthquake" target="_blank">Nepal earthquake</a> data. The earthquake data used here is NOT real-time. The records were downloaded from USGS website (csv format) and placed in the data folder. To filter the quakes in the vicinity of Nepal, only the quakes within the bounding box of Nepal map are used.</p>
<p>This is a simple implementation of Shiny dashboard to explore the <a href="http://en.wikipedia.org/wiki/April_2015_Nepal_earthquake" target="_blank">April 2015 Nepal earthquake</a> data. The earthquake data used here is NOT real-time. The records were downloaded from USGS website (csv format) and placed in the data folder. To filter the quakes in the vicinity of Nepal, only the quakes within the bounding box of Nepal map are used.</p>

<p><b>You can try the app at:</b> <a href="https://asheshwor.shinyapps.io/np-quake" target="_blank">https://asheshwor.shinyapps.io/np-quake</a>.</p>

<p>You can also <b>run the app locally</b> (if you have RStudio installed) by using the following command:</p>
<p>Alternatively, You can <b>run the app locally</b> (if you have RStudio installed) by using the following command:</p>
<pre>## Install missing packages
packagesRequired <- c("shinydashboard", "leaflet", "dplyr",
"reshape2", "scales", "ggplot2",
"tidyverse", "scales", "ggplot2",
"data.table", "rgdal", "jsonlite",
"shiny")
packagesToInstall <- packagesRequired[!(packagesRequired %in%
Expand All @@ -23,7 +23,8 @@ <h3>R packages used</h3>
<li>dplyr</li>
<li>scales</li>
<li>ggplot2</li>
<li>reshape2</li>
<li><s>reshape2</s></li>
<li>tidyverse</li>
<li>data.table</li>
<li>rgdal</li>
<li>jsonlite</li>
Expand All @@ -37,4 +38,4 @@ <h3>Attribution</h3>
<b>Fatalities, injuries and damage data:</b> Ministry of Home Affairs (MoHA)/National Emergency Operation Center (NEOC) official figures for casualties and damages [5 June update] <a href="https://docs.google.com/spreadsheets/d/1MCsMtcfN8jwGg4qdzYZCKyxpYp8cdqRSrEpF1WpR6ZE/edit#gid=1367273225" target="_blank">MoHA/NEOC official figures Google spreadsheet link</a><br>
<b>Nepal districts map geojson file:</b> Shared under MIT license by Saugat Acharya <a href="https://github.com/mesaugat/geoJSON-Nepal" target="_blank">https://github.com/mesaugat/geoJSON-Nepal</a><br>
<b>Map data:</b> The maps are generated using <a href="https://rstudio.github.io/leaflet/" target="_blank">leaflet for R</a>. Map tiles from <a href="https://www.mapbox.com/" target="_blank">Mapbox</a>. Mapbox uses map data from <a href="http://www.openstreetmap.org/" target="_blank">Open Street Maps</a>.</p>
<br>
<br>
Loading

0 comments on commit 3a20ab8

Please sign in to comment.