James Cichon
July 5, 2017
The application shows the location of surface water stations in Florida. Depending on the date range and parameter settings you may get more or less station locations.
The user Interface code (ui.R) has a menu bar called Surface Stations. This is not needed in this application but an additional tab for Groundwater Stations will be added in the future.
In addition, it has a leaflet map to veiw spatial data and two selection boxes as input.
The server code (server.R) connects to the USGS NWIS database, queries the data, and plots the data based on user input.
The code and shiny application can be found at the following links:
GitHub code: https://github.com/jcichon/shinyWater
Shiny application: https://jcichon.shinyapps.io/shinywater/
library(dataRetrieval)
library(dygraphs)
library(magrittr)
usgsDaily <- readNWISdv("02320000", "00060", startDate = "2012-09-17", endDate = "2017-06-30")
dygraphData <- usgsDaily[,4]
names(dygraphData) <- usgsDaily$Date
dygraph(dygraphData) %>% dyRangeSelector()