Changelog
Source:NEWS.md
ggfittext 0.10.3
CRAN release: 2025-12-13
Bug fixes
- ‘width’ argument now works properly in
geom_bar_text()(#41, thanks
ggfittext 0.10.2
CRAN release: 2024-01-31
Minor changes
- Copy
theta_rescale()andr_rescale()to avoid relying on ggplot2 internal functions (#39, thanks @teunbrand) - Use the cli package for messages, warnings, etc.
ggfittext 0.10.1
CRAN release: 2023-09-05
Minor changes
- Fix the ‘ggfittext-package’ documentation after a breaking change to roxygen2
ggfittext 0.10.0
CRAN release: 2023-04-04
Major changes
- Add ‘flip’ argument to
geom_fit_text()to flip text ‘the right way up’ when in polar coordinates (thanks @BradyAJohnston) - Add experimental support for rich text, with the
richargument togeom_fit_text()andgeom_bar_text(). Uses gridtext to render a subset of Markdown and HTML. This is liable to change and in particular there may be breaking changes as a result of upstream changes in gridtext - Move ggplot2 from ‘Depends’ to ‘Imports’
Minor changes
- Internal refactoring
- Improvements to the reflowing algorithm, both for speed and aesthetics
- Make ‘label’ required aesthetic for
geom_bar_text()(#29, thanks @gregleleu)
Bug fixes
- Fix support for bi-directional
geom_col()(#23, thanks again @ds-jim)
ggfittext 0.9.1
CRAN release: 2021-01-30
Minor changes
- Various minor copy-editing changes to the README and introductory vignette
-
coffeesdata frame renamed tobeverages, some other minor changes to example data frames - Change the heuristic for selecting between ‘xmin/xmax’ and ‘width’ (or ‘ymin/ymax’ and ‘height’), as it was causing a bug with zero-height boxes (#26)
ggfittext 0.9.0
CRAN release: 2020-06-14
Major changes
- Add experimental support for polar coordinates in
geom_fit_text() - Improvements to the behaviour of
geom_bar_text()in flipped coordinates, including support for the new bi-directionalgeom_col()in ggplot2 3.3.0 (#23, thanks @ds-jim)
Minor changes
-
contrast = TRUEnow assumes ggplot2 default colours forfillandpanel.background, so it can be used in the absence of afillaesthetic. - Change default behaviour of
contrastingeom_bar_text(); instead of defaulting to TRUE, it defaults to true if the text colour is black but to FALSE otherwise (#22, thanks @ds-jim) -
geom_bar_text()now defaults tocontrast = TRUE -
outsidenow defaults to FALSE withgeom_bar_text()unlessposition = "identity" - Add visual examples for
fullheight
Bug fixes
- Silently ignore NA values of ‘label’ rather than stopping with an error
- Skip drawing text when the box limits are outside the plot limits and emit a warning, rather than stopping with an error (see #11, thanks
- Fix ‘Ignoring unknown aesthetics: fill’ error (#19, thanks @zilch42)
- Clarify defaults for
min.sizeargument - Fix bug when using grid units for height or width
ggfittext 0.8.0
CRAN release: 2019-06-23
Major changes
- New
geom_bar_text()convenience function for labelling of bars in bar plots - New
contrastargument for automatically contrasting a background fill colour - New
fullheightargument for including or excluding descenders in text size - Faster for many common uses
- New
hjustandvjustarguments that can be controlled independent ofplace - New
outsideargument to allow text that doesn’t fit inside the box to be teleported outside of it
Bug fixes
- When reflowing text, calculation of the best aspect ratio now takes into account the output device’s aspect ratio
- When reflowing text, calculation of the best aspect ratio no longer refuses to entertain the possibility that the original text might have the best ratio
- Angled text is now placed correctly
ggfittext 0.7.0
CRAN release: 2019-05-29
Major changes
- Add support for automatic sizing of text on discrete (categorical) axes
- Fully deprecate ‘width’ and ‘height’ as aesthetics
- Increase required R version to 3.2.3
Minor changes
- Remove default values for ‘width’ and ‘height’ parameters
- Add new
formatterargument togeom_fit_text(). - Add visual tests with vdiffr.
ggfittext 0.6.0
CRAN release: 2018-07-06
Major changes
- Change
widthandheightfrom aesthetics to arguments. - Allow
widthandheightarguments to be provided in native units (thanks to @corybrunson). - Add support for
position = "stack".
ggfittext 0.4.3
CRAN release: 2017-08-21
Minor changes
- Style change for CRAN submission.
- Add example to
geom_fit_text()documentation.
ggfittext 0.4.2
Bug fixes
- Tidy up some namespace issues (thanks to @JohnsonHsieh).
- Rewrite documentation.
- Add example to README, edit and produce vignette.
- Misc. minor fixes to pass R CMD check.
ggfittext 0.2
Major changes
-
geom_shrink_text()andgeom_fill_text()replaced with singlegeom_fit_text()with ‘fill_text’ option. (The old geoms still work, but as wrappers forgeom_fit_text()). - Add support for discrete axes with new
discrete.heightanddiscrete.widthoptions.