GithubHelp home page GithubHelp logo

7yl4r / wq-dash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tbep-tech/wq-dash

1.0 1.0 0.0 50.89 MB

water quality reporting dashboard

Home Page: https://7yl4r.shinyapps.io/wq-dash/

License: Creative Commons Attribution 4.0 International

R 64.39% CSS 18.02% HTML 17.58%

wq-dash's Introduction

README

Prototype dashboard for viewing water quality parameters around FL.

Testing

source("./run_tests.R")

Upstream resources

This dashboard was based on TBEP's wq-dashboard. Info below is held over from that repo.

build DOI

Materials for TBEP water quality dashboard.

Shiny

wq-dash's People

Contributors

7yl4r avatar actions-user avatar dotis avatar fawda123 avatar

Stargazers

 avatar

Watchers

 avatar

wq-dash's Issues

Filters for data (to reduce clutter)

  1. Continuous data
  2. Number of samples (more than five years)
  3. Others?
  4. Can we filter by parameter? (Show only locations with orthophosphate for example).

add more WQ data ts plots

@7yl4r There are two main formats for the WQ data. There is a .csv file for each param (chl, turb, nitrogen, silica, etc.) or there is a merged .csv with all of them in the same file. I'm not sure which will be easier to ingest by this tool. The merged file is fairly large (~64MB, ~600,000 rows).

data subsetting

We can pre-compute the subsets and use a dropdown to select which subset is being used.

Ways we have been asked to subset

  • timespan : stations with recent data (actively sampled)
  • number of data points : (exclude less than 10 points)
  • program

In addition to precomputing the station lists, we may end up needing to pre-compute display elements (aggregated hex bin view on the map) to reduce load on the server.

Some data not displaying properly

Several stations of AOML data (red dots) is not displaying properly. There are stations right outside Biscayne Bay with very large values that are not real. Also, farther down the reef, there are stations like UK OFF for example with just a straight line, even though this is a regularly sampled station. I have only checked a few locations.

use hexagon view or bubble view to show aggregation of stations when zoomed out

The number of points on this map makes it unusable:

image

We need to show points only when at a more zoomed-in view.
Alternative display ideas when further zoomed out

  1. print "you must zoom in"
  2. show hexagon grid displaying number of stations
    • bonus : can color hex grid based on aggregated trend colors from each station in the grid
  3. show bubble-with-numbers map

Can't deploy to shinyapps.io b/c of tbep-tech/tbeptools dependency

librarian::shelf is causing this error when trying to run the app on shinyapps.io:

2023-04-30T20:45:18.676402+00:00 shinyapps[8986944]: Quitting from lines 15-129 (wq-dash.Rmd) 
2023-04-30T20:45:18.677707+00:00 shinyapps[8986944]: 	  |                                                         	  |                                                   |   0%	  |                                                         	  |..                                                 |   5%                   	  |                                                         	  |.....                                              |  10% (setup)           	                                                                                                             
2023-04-30T20:45:18.680325+00:00 shinyapps[8986944]: Warning: Error in : Failed to install 'tbeptools' from GitHub:
2023-04-30T20:45:18.680338+00:00 shinyapps[8986944]:   unable to install packages
2023-04-30T20:45:18.724569+00:00 shinyapps[8986944]:   167: <Anonymous>
2023-04-30T20:45:18.724609+00:00 shinyapps[8986944]:   166: stop
2023-04-30T20:45:18.724615+00:00 shinyapps[8986944]:   165: value[[3L]]
2023-04-30T20:45:18.724621+00:00 shinyapps[8986944]:   164: tryCatchOne
2023-04-30T20:45:18.724638+00:00 shinyapps[8986944]:   163: tryCatchList
2023-04-30T20:45:18.724643+00:00 shinyapps[8986944]:   162: tryCatch
2023-04-30T20:45:18.724648+00:00 shinyapps[8986944]:   161: install_remotes
2023-04-30T20:45:18.724653+00:00 shinyapps[8986944]:   160: remotes::install_github
2023-04-30T20:45:18.724658+00:00 shinyapps[8986944]:   157: stock
2023-04-30T20:45:18.724663+00:00 shinyapps[8986944]:   156: librarian::shelf

There must be another way to set up the dependency to get it working. devtools::install_github throws a similar error. I had trouble installing this locally but I will try going back to assuming it is installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.