Hinton Diagrams for 'ggplot2'
Overview
Provides a 'ggplot2' extension for drawing Hinton diagrams, a visualisation technique for numerical matrices in which the area of each square is proportional to the magnitude of the corresponding entry. For signed data, white squares indicate positive values and black squares indicate negative values on a grey background. Hinton diagrams are especially useful for visualising PCA weight matrices, correlation matrices, and transition matrices.
- Initial release.
geom_hinton()andstat_hinton()for drawing Hinton diagrams in ggplot2.scale_fill_hinton()for the conventional signed-data colour scheme.theme_hinton()for a clean, grid-free panel theme.matrix_to_hinton()andas_hinton_df()for converting matrices to tidy data frames.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 1 ERROR2026-04-11
- OK4 OK2026-04-02
Documentation
- Help pages
- 7 (1 internal)includes a package overview page
- Examples that run
- 100%6 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/robin-foster-rf/gghinton on 2026-10-21.
Dependencies
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- 0.1.0Latest2026-04-01 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-04-01
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 1.2 KB / 1 file
- Download size
- 420 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("gghinton")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.