Bayesian Spatial Functional Clustering
Overview
Bayesian clustering of spatial regions with similar functional shapes using spanning trees and latent Gaussian models. The method enforces spatial contiguity within clusters and supports a wide range of latent Gaussian models, including non-Gaussian likelihoods, via the R-INLA framework. The algorithm is based on Zhong, R., Chacón-Montalván, E. A., and Moraga, P. (2026) doi:10.1002/sim.70597, extending the approach of Zhang, B., Sang, H., Luo, Z. T., and Huang, H. (2023) doi:10.1214/22-AOAS1643. The package includes tools for model fitting, convergence diagnostics, visualization, and summarization of clustering results.
Documentation fixes
- Rewrote the "Advanced features" vignette (
vg02-advanced-features.Rmd) to usenclustdirectly instead of an explicitgenclust()call, and to demonstrate thepath_save/nsavecheckpointing arguments; regenerated the corresponding cached vignette data (gaussian-mcmc1.rds,gaussian-mcmc2.rds). - Fixed the "Standardized daily temperature at Canadian stations" vignette (
vg12-temp-canada.Rmd): addedsort = TRUEtoplot_clusters_series()so its cluster numbering matchesplot_clusters_map()/plot_clusters_fitted(), and corrected the resulting narrative description of cluster shapes.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-05-12
- ERROR12 OK, 1 ERROR2026-05-09
- OK13 OK2026-05-08
Show 14 earlier changesHide 14 earlier changes
- ERROR12 OK, 1 ERROR2026-05-05
- OK13 OK2026-05-04
- ERROR12 OK, 1 ERROR2026-04-30
- OK13 OK2026-04-28
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-24
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-13
- NOTE12 OK, 2 NOTE2026-04-11
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-09
- NOTE12 OK, 2 NOTE2026-04-07
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-02
- NOTE12 OK, 2 NOTE2026-03-30
- ERROR11 OK, 2 NOTE, 1 ERROR2026-03-25
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 18 (1 internal)includes a package overview page
- Examples that run
- 71%5 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 43%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 75%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
PRs over time
Commits over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/erickchacon/sfclust on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-24 · The repository has a site deploy workflow
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.1.1Latest
- 1.1.02026-07-28 · diff ↗ ·
removed 2 exports
data_each, log_mlik_alladded 4 exports
plot_clusters_fitted, plot_clusters_map, plot_clusters_series, plot_log_mlik - RR 4.6.0 released · 2026-04-24
- 1.0.12025-05-19
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-05-19
- Total releases
- 3 / 1 yrs
- License
- MIT + file LICENSE OSI
- Additional repositories
- inla.r-inla-download.org
- Minimum R
- ≥ 4.1.0
- Bundled data
- 178 KB / 3 files
- Download size
- 3.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sfclust")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.