Skip to content

Russell-Shean/bigfoot_sightings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bigfoot Shiny Demo


Here's a link to a live version of the app:
https://russellshean.shinyapps.io/bigfoot_sightings2/

This is a demonstration that shows how R's web development framework shiny can be used to make interactive dashboards and websites.

A publicly available database of bigfoot sightings was used for this project.

Here are some screenshots of what this demonstration app looks like. Scroll past the pictures for instructions to run a live version of this app and read more about how this project is organized!

How to run a live version of this app

  1. Clone this repo as an R Project in Rstudio
  2. Open the app.R file in Rstudio and click on the run app button:

The app can also be run as a docker container

sudo docker run  -p 6599:6599 rshean/bigfoot-shiny:latest

If you don't have docker on your computer, you can also run the container on this online sandbox: https://labs.play-with-docker.com/

File organization

The app.R file is divided into three main parts:

  1. Pre-processing: This section includes some filtering and data aggregation. It also sets file paths, shiny port numbers, and plot and map aestetics and themes.
  2. User Interface (UI): This section specifies the layout and look of the webpage that users see when they interact with the shiny. The html elements for inputs and ouputs are defined here. (Their behavior is defined later in the server section).
  3. Server: This section is where the backend behavior of the app is defined. It also includes a lot of the aesthetic settings for r objects such as maps, plots, and tables. This is where almost all the reactive and interactive programing behavior is defined.

The App.R file executes/loads serveral external files including

  1. HTML, CSS, and javascript files stored in the www/ folder

  2. R scripts that define functions and pre process data stored in the r_scripts folder