Fit Text Inside a Box in 'ggplot2'
Overview
A 'ggplot2' extension to fit text into a box by growing, shrinking or wrapping the text.
Minor changes
- Remove dead code: the unexported, unreachable
geom_grow_text()andgeom_shrink_text()deprecation stubs, and an unusedflipdata column set byGeomFitText$setup_data()(#59). - Expand test coverage (#63).
- Correct documentation errors (#49, #57).
- Add a vignette example for
outside(#65).
Bug fixes
geom_bar_text()now accepts apositiongiven as a Position object rather than a string, e.g.position_dodge(width = 0.9)(#44).geom_bar_text()now labels implied-flip horizontal bars with the bar value rather than the category index when nolabelaesthetic is mapped (#45).
Show all changes in 0.10.4Hide the rest of the changes in 0.10.4
- Reflowed text now stays within the box width (#47).
geom_fit_text()now drops both empty-string andNAlabels through explicit filtering (#48).geom_bar_text()now ignoresNAtext colours when deciding whether to enable contrast, rather than erroring (#56).
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
- 8 (1 internal)includes a package overview page
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 48%
- Return-value docs
- 0%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 2
- 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
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/wilkox/ggfittext on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-07-05 · The repository has a site deploy workflow
pkgdown site last built 2026-07-05
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-01-12Named in .Rbuildignore: .claude, CLAUDE.mdCommits: at least 15 crediting it in the message
- Claude Opus 4.810 commits · Jul 2026
- Claude Fable 51 commit · Jul 2026
- Claude Haiku 4.51 commit · Jul 2026
Dependencies
Installing ggfittext adds 31 packages (17 with compiled code, 29 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, Rcpp 1.8 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.10.4Latest
- 0.10.32025-12-13 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.10.22024-02-01 · diff ↗
- 0.10.12023-09-05 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.10.02023-04-04 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.9.12021-01-30 · diff ↗
- 0.9.02020-06-15 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.8.12019-07-18 · diff ↗
- 0.8.0
Package metadata
- First published
- 2017-08-21
- Total releases
- 13 / 9 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.6
- Bundled data
- 2.0 KB / 6 files
- Download size
- 867 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ggfittext")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-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.