Giter Site home page Giter Site logo

rare-technology / eco_dashboard Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 29.49 MB

Ecological surveys dashboard

Home Page: https://portal.rare.org/en/tools-and-data/ecological-data/

License: MIT License

R 94.59% CSS 4.45% JavaScript 0.96%
coral-reefs dashboard data-analysis data-visualization ecology mangroves marine-ecology ngo non-profit seagrass

eco_dashboard's People

Contributors

ibidyouadu avatar

Watchers

 avatar

Forkers

marianoviz

eco_dashboard's Issues

Blank fish family

Some samples in fish.survey have a blank "" value for family. When using that as an option to plot, it crashes the app. There are about 600 samples with this nameless family. For now, they are filtered out by passing rv$data_full through a filter.

HND site has incorrect latitude

HND site with location_name of Gmc3 has a negative latitude. This noticeably separates it from the other HND sites on the map. If the value were positive, it would fit right into the cluster of HND sites.

Redesign "plot type" selection

"Bar plots" vs "Distribution plots" doesn't sound very clear what the difference is until you click it. Even then, "distribution plot" just doesn't sound right, except maybe for the fish size and seagrass height plots. But still the point of that selection is to show samples or not. So probably change the text to "Show samples" and a toggle switch w/ no text.

Consider reactivity between year and geo selections

Currently year and geo selections (except country) are isolated from each other. So, a certain year may be picked and the choices will include communities with no records in that year. Maybe use selected communities to update year choices instead of country.

"Warning: Error in aggregate.data.frame: no rows to aggregate" briefly appears

To reproduce:

  1. Select IDN, any MA's.
  2. Deselect all fish family, select any or a few.
  3. Select MOZ
  4. Select Ilha de Mocambique as MA (cannot reproduce if other MA is chosen)

The plot will update with a brief pause and in the console the error from the title can be seen. From recent experience, that seems to indicate that in mod_plot.R, plot_biomass() is having an empty data_filtered passed through it.

Functionally, it looks ok. Double check that the plots coming out are correct though.

deploy !

f0ae984 is complete enough to deploy to a dev server to check with Courtney and George

size_class vs length

Do we want to continue using size_class as the plotting variable for fish length? If so, what should the standard size classes be? The size classes are inconsistent throughout the fish surveys dataset.

Otherwise we could just use the raw length values.

Production Optimizations

Although the ECO dashboard currently uses up less RAM than the HHS and FMA dashboards, it has twice the CPU and network usage. This may be due to the instant plot updates as the user changes geography and display settings. Some considerations:

  1. A "generate plot" button so that the plotting code runs only when the button is clicked after the user is happy with the settings.
  2. Caching plot images (RAM seems to not be an issue so why not?)
  3. (hard) Code optimization. Ideally should not need this.

revamp map tab

No more pop-up box when clicking on sites. Instead highlight regions to denote:

  • MA
  • coreal reef area
  • habitat area

Will have to figure out how to work with shape files, we have them somewhere.

Verify location status for IDN fish data

Some sites like Mataoleo and Teluk Lasolo have no 'Reserve' data. This is either a coding error or due to something about how no reserves were surveyed in those areas. according to Stu. If the latter is true, then there shouldn't be anything to fix.

Coral data

  • Revamp to include trends. Consider interactivity
  • When Courtney finishes the CoralNet-Mermaid mapping, redefine coral variables according to the mapping

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.