From 56e6d17883d6afb75583de9e52c1d24efb9024ba Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Tue, 19 Dec 2023 15:11:38 +0000 Subject: [PATCH 1/2] Added explainer text for the plots --- R/shiny_modelviewer.R | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/R/shiny_modelviewer.R b/R/shiny_modelviewer.R index b69348c8..25be16e7 100644 --- a/R/shiny_modelviewer.R +++ b/R/shiny_modelviewer.R @@ -90,7 +90,21 @@ model_viewer_shiny <- function(model_output, mesh, measurement_data, data_distri shiny::tabPanel( "Help", class = "p-3 border", - shiny::h3("Help"), + shiny::h4("Range"), + shiny::p("The Range plot provides a plot of the posterior distribution of the spatial range parameter ρ, the distance at which the correlation between two points is approximately 0."), + shiny::h4("Stdev"), + shiny::p("The Stdev plot provides a plot of the posterior distribution of the marginal standard deviation σ of the spatial field."), + shiny::h4("AR(1)"), + shiny::p("The AR(1) plot provides a plot of the posterior distribution of the temporal autocorrelation α. A value close to 1 indicates strong positive temporal dependence, a value of 0 indicates independence across time, and a value close to -1 indicates strong negative temporal dependence."), + shiny::h4("Boxplot"), + shiny::p("The Boxplot displays the predicted (or fitted) values across the observed locations and time points, showing how the predictions are distributed."), + shiny::h4("Density"), + shiny::p("The Density plot displays the density curve of the predicted (or fitted) values across the observed locations and time points."), + shiny::h4("DIC"), + shiny::p("The DIC plot displays the Deviance Information Criterion (DIC) value for the model. DIC is a model selection criterion, with lower values indicating better model fit."), + shiny::h4("Map"), + shiny::p("The plot of predicted mean fields maps the predicted values across a number of grid locations that cover the study region. It helps to identify areas with high predictions and those with low predictions. The predicted values at observed locations and time points can be obtained by using the syntax model_output$summary.fitted.values$mean[1:nrow(observed_data)]. The predicted values at the grid locations are calculated using the method described in the priors tutorial "), + shiny::p("The plot of random effect fields maps the random effect values (the f() values) across a number of grid locations that cover the study region. The random effect values at the mesh nodes and time points can be obtained by using the syntax model_output$summary.random$f$mean.") ) ) ) From aa48e831ae40732d059bff08d2b86708086b16c0 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Tue, 19 Dec 2023 15:14:39 +0000 Subject: [PATCH 2/2] Add changelog line --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3121feec..04cb564a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added a new tutorial on loading data from different sources - [PR #266](https://github.com/4DModeller/fdmr/pull/266/) - Added new geophysical processes tutorial thanks to Alexander Minakov (4minakov) - [PR #257](https://github.com/4DModeller/fdmr/pull/257) - Added mouse pointer coordinates header and standard measurement tool - [PR #260](https://github.com/4DModeller/fdmr/pull/260) -- New plotting function `plot_map_mapview` to use `mapview` to plot raster and spatial data - [#291](https://github.com/4DModeller/fdmr/pull/291) +- Added new help explainer to the `Help` tab of the `model_viewer` Shiny app - [PR #295](https://github.com/4DModeller/fdmr/pull/295) ### Changed