Skip to content

Silhouette

0.9.6Package record

Proximity Measure Based Diagnostics for Standard, Soft, and Multi-Way Clustering

0packages depend
3.5Kdownloads / year
52.5%test coverage
13/13flavors OK

Overview

About

Quantifies clustering quality by measuring both cohesion within clusters and separation between clusters. Implements advanced silhouette width computations for diverse clustering structures, including: simplified silhouette (Van der Laan et al., 2003) doi:10.1080/0094965031000136012, Probability of Alternative Cluster normalization methods (Raymaekers & Rousseeuw, 2022) doi:10.1080/10618600.2022.2050249, fuzzy clustering and silhouette diagnostics using membership probabilities (Campello & Hruschka, 2006; Menardi, 2011; Bhat & Kiruthika, 2024) doi:10.1016/j.fss.2006.07.006, doi:10.1007/s11222-010-9169-0, doi:10.1080/23737484.2024.2408534, and multi-way clustering extensions such as block and tensor clustering (Schepers et al., 2008; Bhat & Kiruthika, 2025) doi:10.1007/s00357-008-9005-9, doi:10.21203/rs.3.rs-6973596/v1. Provides tools for computation and visualization (Rousseeuw, 1987) doi:10.1016/0377-0427(87)90125-7 to support robust and reproducible cluster diagnostics across standard, soft, and multi-way clustering settings.

Changes in 0.9.6

**New Features**

  • Introduced new functions:
  • **getSilhouette()** Constructs a Silhouette class object directly from user-provided components without performing silhouette calculations. Allows users to build Silhouette objects when they already have cluster assignments, neighbor clusters, silhouette widths, and optional weights.
  • **is.Silhouette()** Tests whether an object is of class "Silhouette" with optional strict validation. Checks both class inheritance and expected structure including required columns, attributes, and value ranges.
  • **cerSilhouette()** Computes certainty silhouette widths for soft clustering using maximum posterior probabilities. Provides an alternative evaluation method for fuzzy clustering algorithms with support for crisp, fuzzy, and median averaging.
  • **dbSilhouette()** Computes density-based silhouette widths using log-ratios of posterior probabilities based on Menardi (2011) method. Offers normalized silhouette evaluation for soft clustering with enhanced discrimination between cluster assignments.
  • **calSilhouette()** Computes all available silhouette indices from the package functions and returns a comparative summary data frame. Automatically calculates crisp, fuzzy, and median silhouette values across different methods including proximity-based (medoid, pac), soft silhouette variations (pp_pac, pp_medoid, nlpp_pac, nlpp_medoid, pd_pac, pd_medoid), and probability-based methods (cer, db). Supports direct matrix input or clustering function output for streamlined comparative analysis.
Show all changes in 0.9.6Hide the rest of the changes in 0.9.6

**Improvements**

  • Extended existing functions to support **median-based silhouette calculations** as an alternative to mean-based computations.
  • Added new average attribute for existing Silhouette class supporting "crisp", "fuzzy", and "median" options.
  • Enhanced clustering evaluation capabilities with density-based and certainty-based statistical measures.
  • Updated documentation to reflect new median calculation options and soft clustering methods.
  • Enhanced calSilhouette() to compute all combinations of softSilhouette() methods (pp, nlpp, pd) with both pac and medoid approaches, providing comprehensive comparative analysis across 11 different silhouette computation methods.

Updated Dependencies

  • **Imports**: dplyr, ggplot2, ggpubr, lifecycle, methods, stats
  • **Suggests**: proxy, ppclust, blockcluster, cluster, factoextra, drclust

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 5.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.9.6
READMEYes · 448 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.9.6Citation fileYes · software entry onlyWebsiteYes · pkgdown
Help pages
10 (1 internal)includes a package overview page
Examples that run
56%5 run in a plain check (1 of them under a condition) · 4 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
60%

Downloads

3.5K
CRAN downloads in the past year
Rank #15,758 · ~10/day · ~292/mo
Daily download trend is not available in this view yet.
30230 days
78990 days
3.5K1 year
Compare downloads with other packages →
Also on89 r2u3 autocran

Repository

3Stars
0Forks
0Open issues
0Open PRs
5Releases
253Commits
1Commit identities
classificationcluster-analysisclustering-algorithmproximity-measuresilhouettemembership-probability
License file reads as GPL-2.0 · 253 commits · Last activity 2026-07-08 · Default branch at 0.9.7, ahead of CRAN 0.9.6 (checked 2026-10-21)
Responsiveness
How these are sampled
PRs merged (all time)
0%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0
PracticesBeta

7 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/kskbhat/silhouette on 2026-10-21.

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-07-08 · The repository has a site deploy workflow

pkgdown site last built 2026-07-08

Coverage (1)
Coverage reporting
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-08-28
    Pull request: opened by its own account
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)

Installing Silhouette adds 68 packages (33 with compiled code, 64 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, doBy 4.3 MB.

Depends (1)
R >= 4.2.0
Imports (6)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer since 0.9.4 (2025), Copyright holder
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.9.6Latest
    record
    2025-10-15 · current release · diff ↗ ·
    added 5 exports
    calSilhouette, cerSilhouette, dbSilhouette, getSilhouette, is.Silhouette
  • 0.9.4
    record
    2025-07-30
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-07-30
Total releases
2 / 1 yrs
License
GPL-2 OSI
Minimum R
≥ 4.2.0
Download size
338 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("Silhouette")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.32614/cran.package.silhouette.

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 Silhouette version 0.9.6 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, 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