Skip to content

Commit

Permalink
Merge pull request #295 from 4DModeller/Iss232/PlotExplainer
Browse files Browse the repository at this point in the history
Added explainer text for the plots
  • Loading branch information
gareth-j authored Dec 19, 2023
2 parents f0c3c17 + aa48e83 commit fc3330a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
16 changes: 15 additions & 1 deletion R/shiny_modelviewer.R
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
)
)
)
Expand Down

0 comments on commit fc3330a

Please sign in to comment.