Shiny Application and Reproducible Pitch

Kaihua Hou
2020-07-28

This course project contians two things

  1. Shiny Application
  2. Reproducible Pitch

The summary of this Shiny application

  • The application creates an interactive map using plotly and leaflet
  • There are two tabs to choose from in the main panel: County Level and State Level
  • On the side panel, the user can select the state(s) to show up in the State Leve
  • The user can also interact with the map in the County Level tab uing the plotly map tools located on the top of the map

Data Used

 url2<- "https://raw.githubusercontent.com/plotly/datasets/master/fips-unemp-16.csv"
df <- read.csv(url2, colClasses=c(fips="character"))
head(df)
   fips unemp
1 01001   5.3
2 01003   5.4
3 01005   8.6
4 01007   6.6
5 01009   5.5
6 01011   7.2

Data Used

  fips         county   state state_code   male female median_age population
1 1001 Autauga County Alabama         AL  26874  28326       37.8      55200
2 1003 Baldwin County Alabama         AL 101188 106919       42.8     208107
3 1005 Barbour County Alabama         AL  13697  12085       39.9      25782
4 1007    Bibb County Alabama         AL  12152  10375       39.9      22527
5 1009  Blount County Alabama         AL  28434  29211       40.8      57645
6 1011 Bullock County Alabama         AL   5663   4689       39.6      10352
  female_percentage      lat      long
1          51.31522 32.53492 -86.64273
2          51.37694 30.72748 -87.72256
3          46.87379 31.86958 -85.39321
4          46.05584 32.99863 -87.12648
5          50.67395 33.98087 -86.56738
6          45.29560 32.10053 -85.71568