inbo / riparias-prep

Preparatory scripts and data management for the RIPARIAS workflow
MIT License
0 stars 1 forks source link

Add trend analysis to RIPARIAS dashboard #42

Closed timadriaens closed 2 years ago

timadriaens commented 2 years ago

based on cubes and TrIAS time series analysis, present another tab in the RIPARIAS indicator dashboard displaying the TrIAS indicators trend in observations and trend in occupancy at river basin unit.

SanderDevisscher commented 2 years ago

These graphs: Observations Observations - corrected Occupancy Occupancy - corrected

SanderDevisscher commented 2 years ago

@jrhillae I've created a trends_prep.r script which creates/updates data\interim\trends_compact.csv. The next step would be to integrate the graphs into the shiny app. Can you share where you want the code for the graphs and what would be the user input parameters ?

I've created the 42_add_trends-branch, after I've created the trends_prep script, to integrate the graphs. I'll do a PR into the 41_extending_baseline_map - branch when I'm ready.

jrhillae commented 2 years ago

@SanderDevisscher : Thank you for your help. I already wrote down the code on the side of the userinterface. Only the plots need to be generated in the server lines 385-397. The user input is normally the scientific_name. (input$Species_trends)

SanderDevisscher commented 2 years ago

@jrhillae heads up in heb eindelijk een gat in mijn schema gevonden, ik zal deze namiddag (en mogelijk morgenvoormiddag) werken aan deze issue.

jrhillae commented 2 years ago

@SanderDevisscher : I want to check your code but I have trouble installing the trias package. I get the message that it is not available for my version of R. How can I install the trias package?

SanderDevisscher commented 2 years ago

@jrhillea have you tried 'devtools::install_github("trias-project/trias")'?

Op zo 17 apr. 2022 07:35 schreef jrhillae @.***>:

@SanderDevisscher https://github.com/SanderDevisscher : I want to check your code but I have trouble installing the trias package. I get the message that it is not available for my version of R. How can I install the trias package?

— Reply to this email directly, view it on GitHub https://github.com/inbo/riparias-prep/issues/42#issuecomment-1100808291, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAAQOBK3ZIILHCCHJ756QLVFOPJ5ANCNFSM5OU3NJHA . You are receiving this because you were mentioned.Message ID: @.***>

jrhillae commented 2 years ago

@SanderDevisscher : I tried to install it again and it worked :). The figures are looking ver good! One thing I noticed, the title of the figures is not completely shown. Maybe shorten it by removing species name? The species is very clair from the context (i.e. the one selected on the left) so not necesaary to show in the title. Would that be possible?