Enrich Figures and Tables with Custom Headers and Footers and More
Overview
A simple and flexible tool designed to create enriched figures and tables by providing a way to add text around them through predefined or custom layouts. Any input which is convertible to 'grob' is supported, like 'ggplot', 'gt' or 'flextable'. Based on R 'grid' graphics, for more details see Paul Murrell (2018) doi:10.1201/9780429422768.
New features
- Added vertical anchoring for the gridify object inside its cell via the new
vjustslot ofgridifyObject()and theobject_vjustargument ofsimple_layout(),complex_layout(),pharma_layout_base(),pharma_layout_A4()andpharma_layout_letter().0aligns the object to the bottom,0.5(default) centers it, and1anchors it to the top of the cell. Most useful for fixed-size grobs such asgtandflextabletables. Whenvjust != 0.5is used with a fixed-size grob the viewport is sized togrid::grobHeight()and theheightslot ofgridifyObject()is ignored. For fixed-size tables, edge values (0or1) place the table directly against the object-row edge; add spacer rows in custom layouts or use inset values such as0.05or0.95if nearby text appears too close. Reported and proposed by Monika Beh.
Show all changes in 0.8.1Hide the rest of the changes in 0.8.1
- Added support for
fill_empty = NAin thepaginate_table()function.
Bug fixes
- When
fill_emptyin thepaginate_table()function is a character value, the final paginated table now coerces columns to character before filling empty cells (#20).
Miscellaneous
- Added section on pipeline security and PDF searchability to
README.md,gridifyvignette, andtransparencyvignette. - Added the active lifecycle badge to
README.mdfile (#17).
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
- 33 (6 internal)
- Examples that run
- 100%20 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 89%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 94%
- Median days to close, 50 most recently updated closed issues
- 30
- Median days to close, 50 most recently updated closed PRs
- 4
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
13 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/pharmaverse/gridify 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-06-17 · The repository has a site deploy workflow
pkgdown site last built 2026-06-17
Show all practicesHide 2 practices
Dependencies
Installing gridify adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.8.1Latest
- RR 4.6.0 released · 2026-04-24
- 0.7.72026-02-05 · diff ↗
- 0.7.5
- 0.7.42025-08-28
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-08-28
- Total releases
- 4 / 1 yrs
- License
- Apache License 2.0 OSI
- Download size
- 2.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("gridify")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.