Skip to content

gghinton

Hinton Diagrams for 'ggplot2'

v0.1.0 · Apr 1, 2026 · MIT + file LICENSE

Description

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.

Downloads

CRAN

182

Last 30 days

23632nd

522

Last 90 days

555

Last year

Trend: +83.8% (30d vs prior 30d)

r2u CRAN

1

Last 30 days

27

Last 90 days

27

Last year

Trend: -85.7% (30d vs prior 30d)

autoCRAN

2

Last 7 days

11

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘gghinton.Rmd’ using rmarkdown

Quitting from gghinton.Rmd:137-162 [scale-by]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `grid
...[truncated]...
-- finished re-building ‘use-cases.Rmd’

--- re-building ‘why-hinton.Rmd’ using rmarkdown
--- finished re-building ‘why-hinton.Rmd’

SUMMARY: processing the following file failed:
  ‘gghinton.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 10, 2026
ERROR r-oldrel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'gghinton.Rmd' using rmarkdown
--- finished re-building 'gghinton.Rmd'

--- re-building 'mackay-itila.Rmd' using rmarkdown
File ../img/itila-fig2.1.png not found in resource path
Error: processing vi
...[truncated]...
inished re-building 'use-cases.Rmd'

--- re-building 'why-hinton.Rmd' using rmarkdown
--- finished re-building 'why-hinton.Rmd'

SUMMARY: processing the following file failed:
  'mackay-itila.Rmd'

Error: Vignette re-building failed.
Execution halted
OK 4 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 2, 2026

Code

Structure

Lines of code

2,400

Files

46

Compiled share

0%

Has compiled src

No

Language breakdown

R 583 (24.3%)Tests 426 (17.8%)Docs 375 (15.6%)Vignettes 1,016 (42.3%)

API

Exported functions

8

Internal functions

6

Recent export changes

v0.1.0+8 GeomHinton, StatHinton, as_hinton_df +5 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.73

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

100%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

1

First release

2026-04-01

Latest release

2026-04-01

Avg cadence

Cold removal rate

Dep drift

0

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies cli ggplot2 rlang gghinton

Version History

1 tracked
new 0.1.0 Apr 1, 2026