Skip to content

sfclust

1.1.1Package record

Bayesian Spatial Functional Clustering

0packages depend
6.1Kdownloads / year
15.7%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.1.1

Documentation fixes

  • Rewrote the "Advanced features" vignette (vg02-advanced-features.Rmd) to use nclust directly instead of an explicit genclust() call, and to demonstrate the path_save/nsave checkpointing 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): added sort = TRUE to plot_clusters_series() so its cluster numbering matches plot_clusters_map()/plot_clusters_fitted(), and corrected the resulting narrative description of cluster shapes.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 13.1 min · r-release-macos-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.1.1
READMEYes · 245 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 1.1.1Citation fileNoWebsiteYes · pkgdown

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

6.1K
CRAN downloads in the past year
Rank #6,807 · ~17/day · ~506/mo
Daily download trend is not available in this view yet.
48930 days
1.3K90 days
6.1K1 year
Compare downloads with other packages →
Also on127 r2u3 autocran

Repository

3Stars
1Forks
5Open issues
1Open PRs
4Releases
288Commits
4Commit identities
288 commits · Last activity 2026-09-24 · 0% stars, 30d
Responsiveness
How these are sampled
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

2026-07-29 · 12026-09-16 · 3
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-09-24 · The repository has a site deploy workflow

CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)

Installing sfclust adds 39 packages (22 with compiled code, 45 MB of source tarballs). Heaviest: sf 9.3 MB, ggplot2 6.0 MB, igraph 4.8 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Author, Maintainer since 1.0.1 (2025)
Listed in earlier versions (1)
Erick A.
no longer listed · 1.0.1 to 1.1.1
Releases (3)

Pick two releases to compare their code metrics.

  • 1.1.1Latest
    record
    2026-09-24 · current release · diff ↗
  • 1.1.0
    record
    2026-07-28 · diff ↗ ·
    removed 2 exports
    data_each, log_mlik_all
    added 4 exports
    plot_clusters_fitted, plot_clusters_map, plot_clusters_series, plot_log_mlik
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.1
    record
    2025-05-19
  • R
    R 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")
Chacón-Montalván, E. A., Moraga, P., & Zhong, R. (2026). sfclust: Bayesian Spatial Functional Clustering (Version 1.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for sfclust version 1.1.1 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy