Package {MBGapp}


Type: Package
Title: Interactive 'shiny' Application for Model-Based Geostatistics
Version: 0.1.0
Description: Provides an interactive 'shiny' application for teaching and applied analysis of geostatistical data. Users can explore spatial data, assess spatial correlation through the empirical variogram, fit model-based geostatistical models for continuous, prevalence and count outcomes, produce spatial predictions, and download reports. The methodology follows the model-based geostatistics framework of Diggle and Giorgi (2019, ISBN:9781138732353).
License: MIT + file LICENSE
URL: https://github.com/olatunjijohnson/MBGapp
BugReports: https://github.com/olatunjijohnson/MBGapp/issues
Encoding: UTF-8
RoxygenNote: 7.3.1
Imports: geoR, ggplot2, shiny, sf, dplyr, readr, tidyr, magrittr, leaflet, leafem, tidyterra, stars, RiskMap, terra, grDevices, shinyjs, splines, httr2, rmarkdown
Suggests: INLA, covr, testthat (≥ 3.0.0)
Additional_repositories: https://inla.r-inla-download.org/R/stable
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2026-07-02 20:59:52 UTC; olatunji-johnson
Author: Olatunji Johnson ORCID iD [cre, aut], Claudio Fronterre [aut], Emanuele Giorgi [aut]
Maintainer: Olatunji Johnson <olatunjijohnson21111@gmail.com>
Repository: CRAN
Date/Publication: 2026-07-10 19:00:08 UTC

MBGapp: Interactive Shiny Application for Model-Based Geostatistics

Description

The MBGapp package provides a Shiny web application for teaching and applied geostatistical analysis. Users can explore spatial data interactively, assess spatial correlation through the empirical variogram, fit model-based geostatistical models for continuous, prevalence and count outcomes, generate spatial predictions, and download reports.

Details

The application is launched with run_app.

The packages listed in the Imports field are required by the bundled Shiny application (in inst/MBGapp) and are loaded by it at runtime; they are intentionally not imported into the package namespace so that the package itself loads quickly and without pulling in optional system dependencies (e.g. Tcl/Tk via geoR) on headless machines.

Author(s)

Maintainer: Olatunji Johnson olatunjijohnson21111@gmail.com (ORCID)

Authors:

See Also

Useful links:


Launch the MBGapp Shiny application

Description

Runs the interactive Shiny application for model-based geostatistical analysis that is bundled with the package. The application lets the user upload data, explore it, fit geostatistical models and produce predictions and reports.

Usage

run_app()

Value

No return value; called for the side effect of launching the Shiny application.

Examples

if (interactive()) {
  run_app()
}