Interpretable Bivariate Density Visualization with 'ggplot2'
Overview
The 'ggplot2' package provides simple functions for visualizing contours of 2-d kernel density estimates. 'ggdensity' implements several additional density estimators as well as more interpretable visualizations based on highest density regions instead of the traditional height of the estimated density surface.
Fixes
- Package startup message no longer effects the sessions RNG (Reported by @TimTaylor #34)
- Fixed ordering of probabilities in the plot legend to be independent of order specified in
probsargument (Reported by @z3tt #32)
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 17
- Examples that run
- 94%15 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 84%
- Return-value docs
- 13%
- Help pages citing references
- 29%
- The method argument HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 71
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
11 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/jamesotto852/ggdensity on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-02-25 · The repository has a site deploy workflow
pkgdown site last built 2026-02-25, before release 1.0.1 (2026-02-26)
Show all practicesHide 1 practice
Dependencies
Installing ggdensity adds 22 packages (10 with compiled code, 15 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.0.1Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.0.02023-02-10 · diff ↗ ·
added 14 exports
GeomHdrRugFun, StatHdrRugFun, geom_hdr_rug_fun, get_hdr, get_hdr_1d, method_freqpoly, method_freqpoly_1d, method_histogram, method_histogram_1d, method_kde, method_kde_1d, method_mvnorm, method_norm_1d, stat_hdr_rug_fun - 0.1.12022-10-24 · diff ↗
- 0.1.02022-07-20 · diff ↗ ·
added 10 exports
GeomHdrRug, StatHdrPoints, StatHdrPointsFun, StatHdrRug, geom_hdr_points, geom_hdr_points_fun, geom_hdr_rug, stat_hdr_points, stat_hdr_points_fun, stat_hdr_rug - RR 4.2.0 released · 2022-04-22
- 0.0.12022-02-15
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-02-15
- Total releases
- 5 / 4 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 1.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ggdensity")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-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.