February 3, 2018

App Components:

  • Map Visualization
  • Continent Data Analysis
  • Linear Model between Population and GDP
  • Data Set View
  • Documentation
Effects:
  • A Choropleth Map is generated using leaflet.
  • Map uses bootstrapPage() and absolutePanel().
  • plotly charts with user inputs.
  • User selects brush points and a linear model is calculated.
  • App theme "flatly" from the R package shinythemes.
  • A top level navigation bar created using navbarPage().

Link to the app: https://nethika.shinyapps.io/world_population_gdp/

Link to the Code: https://github.com/Nethika/shiny-app-world-data

Data to Visualizations

Loading data and Creating Plot (echo = FALSE)

## OGR data source with driver: ESRI Shapefile 
## Source: "C:\Users\NETHIK~1\AppData\Local\Temp\RtmpGGm7fe", layer: "ne_50m_admin_0_countries"
## with 241 features
## It has 71 fields

Map Visualization

pal <- colorQuantile("YlOrRd", NULL, n = 5)
leaflet(data = world) %>% addProviderTiles(providers$Stamen.TonerLite) %>% setView(25.01667, 24.86667, zoom = 1.5) %>%
  addPolygons(fillColor = ~pal(POP_EST),fillOpacity = 0.6,color = "black",weight = 1) %>% 
  addLegend(pal = pal, values = ~POP_EST, opacity = 0.6,labFormat = labelFormat(), title = "Population", position = "bottomleft")

Screen Shots from App. Link for the app