gustavdelius / mizer

This is my old mizer fork that is not actively used any more but still has lots of material in its many branches.
http://gustavdelius.github.io/mizer/
0 stars 2 forks source link

Create interactive shiny app #23

Closed gustavdelius closed 6 years ago

gustavdelius commented 6 years ago

For inspiration we can look at http://oceanlife.dtuaqua.dk/cspectrum/. The code for that can be cloned from https://repos.gbar.dtu.dk/git/alko/cspectrum.git. It is written in R but does not use mizer but is written from scratch.

gustavdelius commented 6 years ago

I have started to learn how to use shiny by following the DataCamp course at https://campus.datacamp.com/courses/building-web-applications-in-r-with-shiny Luckily writing shiny apps really is as simple as I had hoped. However I still have to learn more about reactive programming in shiny, so that time-intensive calculations are cached and only re-executed when necessary.

gustavdelius commented 6 years ago

@richardsouthwell I have played a bit with shiny and made a practice app at https://gustavdelius.shinyapps.io/Testing/. One thing that became already clear from looking at this is that if we aim our app at fisheries ecologists, we may not want to only use plots on the logarithmic scale, because fisheries people probably think in terms of weights or lengths, not log weights or log lengths. We probably want to plot the spectrum on ordinary scale starting at the size at which the fish enter the fishery. For plots showing larval sizes we want to continue using logarithmic scale. We also need to put units on the axes. Is time measured in years or days, size in gramm or meters?