Package: sfclust 1.1.1

Erick A. Chacón-Montalván

sfclust: Bayesian Spatial Functional Clustering

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.

Authors:Erick A. Chacón-Montalván [aut, cre], Ruiman Zhong [aut], Paula Moraga [aut]

sfclust_1.1.1.tar.gz
sfclust_1.1.1.zip(r-4.7-any)sfclust_1.1.1.zip(r-4.6-any)sfclust_1.1.1.zip(r-4.5-any)
sfclust_1.1.1.tgz(r-4.6-any)sfclust_1.1.1.tgz(r-4.5-any)
sfclust_1.1.1.tar.gz(r-4.7-any)sfclust_1.1.1.tar.gz(r-4.6-any)
sfclust_1.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
sfclust/json (API)

# Install 'sfclust' in R:
install.packages('sfclust', repos = c('https://erickchacon.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/erickchacon/sfclust/issues

Pkgdown/docs site:https://erickchacon.github.io

Datasets:
  • chapa - Spatio-temporal NDWI2 raster data from El Chaparrillo
  • stbinom - Spatio-temporal Binomial data
  • stgaus - Spatio-temporal Gaussian data

On CRAN:

Conda:

6.28 score 3 stars 32 scripts 401 downloads 7 exports 43 dependencies

Last updated from:f498e4fe97. Checks:8 OK, 1 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK273
source / vignettesOK300
linux-releaseOK233
macos-releaseOK267
macos-oldrelERROR190
windows-develOK243
windows-releaseOK260
windows-oldrelOK137
wasm-releaseOK165

Exports:data_allgenclustplot_clusters_fittedplot_clusters_mapplot_clusters_seriesplot_log_mliksfclust

Dependencies:abindclassclassIntclicpp11DBIdplyre1071farvergenericsggplot2gluegtableigraphisobandKernSmoothlabelinglatticelifecyclemagrittrMatrixpatchworkpillarpkgconfigproxyR6RColorBrewerRcpprlangs2S7scalessfSparseMstarstibbletidyselectunitsutf8vctrsviridisLitewithrwk

Advanced features
Packages | Data | Clustering | Model | INLA integration | Penalizing the number of clusters | Save options | Sampling with sfclust | Continue sampling | Results

Last update: 2026-09-24
Started: 2025-05-29

Create a stars dataset
Simulated data | Creating a stars object | Manipulating a stars object

Last update: 2026-07-28
Started: 2025-05-29

Data frame interface
Data structure | Adjacency matrix | Clustering | Results

Last update: 2026-07-28
Started: 2026-07-28

Introduction to sfclust
Packages | Data | Clustering | Model | Sampling with sfclust | Basic methods | Print | Plot | Summary | Fitted values

Last update: 2026-07-28
Started: 2025-05-29