Add Marginal Histograms to 'ggplot2', and More 'ggplot2' Enhancements
Overview
Collection of functions and layers to enhance 'ggplot2'. The flagship function is 'ggMarginal()', which can be used to add marginal histograms/boxplots/density plots to 'ggplot2' scatterplots.
2025-08-31
- **DEPRECATION NOTICE** The
runExample()function is no longer required since {shiny} version 1.8.1 (March 2024). You can now useshiny::runExample("ggMarginal", package = "ggExtra")instead ofggExtra::runExample(). (#180) - Removed deprecated call to ggplot2's
..density..(#175) - Removed deprecated call to ggplot2's
aes_string()(#175)
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-patched-linux-x86_64, r-release-linux-x86_64
Found the following assignments to the global environment: File ‘ggExtra/R/ggMarginalGadget.R’: assign(plotname, eval(parse(text = origPlot)), envir = .GlobalEnv)
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespaces in Imports field not imported from: ‘R6’ ‘scales’ ‘utils’ All declared Imports should be used.
- NOTE7 OK, 6 NOTE2026-06-09
- WARNING7 OK, 5 NOTE, 1 WARNING2026-06-08
- NOTE8 OK, 6 NOTE2026-03-10
Documentation
- Help pages
- 8 (2 internal)includes a package overview page
- Examples that run
- 83%5 run in a plain check (2 of them under a condition) · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 83%
- Help pages citing references
- 0%
- Package ggExtra HTML
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 20
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/daattali/ggextra on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
Dependencies
Installing ggExtra adds 52 packages (25 with compiled code, 43 MB of source tarballs). Heaviest: ggplot2 6.0 MB, bslib 5.6 MB, promises 3.1 MB.
Show all 36 packagesHide all 36 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.11.0Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.10.12023-08-21 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.10.02022-03-23 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.92019-08-27 · diff ↗
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 0.82018-04-04 · diff ↗
- 0.72017-06-25 · diff ↗
- RR 3.4.0 released · 2017-04-21
Show 12 earlier eventsHide 12 earlier events
Package metadata
- First published
- 2015-03-27
- Total releases
- 15 / 11 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.1.0
- Download size
- 848 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ggExtra")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-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.