Gmisc
3.4.0Descriptive Statistics, Transition Plots, and More
Overview
Utilities for common medical-statistics graphics and tables, including automatic creation of publication-ready "Table 1" summaries; transition (Sankey) plots; flow-chart helpers that extend the grid package; Bézier lines and arrows; and a singular-value-decomposition- based variable-selection method.
- Added
vertical_axisandhorizontal_axisconnector types for flowcharts. These opt-in connectors preserve the source box's x- or y-axis and project it onto the target boundary, giving true 90-degree vertical/horizontal arrows for shared wide or tall target boxes. Existingverticalandhorizontalconnector behavior is unchanged. - Added
phaseLabel()for flowchart box lists: a one-call-per-stage helper that adds a CONSORT-style phase label (e.g. *Allocation*, *Follow-up*, *Analysis*) centred between a stage's arms, sitting slightly above it and drawn on top. The label width adapts to the stage — spanning the central gap (plus a small corner overlap) for two arms, or the full stage width as a banner for three or more arms — and can be set explicitly viawidth. It correctly handles nested arm lists (arms that are themselves lists of boxes) by resolving their merged bounding box. - Added
on_toptoinsert()for flowchart box lists. A box inserted withinsert(..., on_top = TRUE)is drawn on top of the other boxes and connections, regardless of its position in the list, and the marker is preserved through subsequentmove()/align()operations. This is the lower-level overlay mechanism thatphaseLabel()builds on. insert()now resolves grouped (list) neighbours via their merged bounding box, so a box can be inserted between grouped stages without error.- Added a CONSORT phase-label example to the grid-based flowchart vignette showing
phaseLabel()centred between randomisation arms. - Updated flowchart examples to emphasize the
flowchart()+ pipe (|>) style API ininst/examples/connectGrob_example.R,inst/examples/spreadBox_ex.R, andinst/examples/alignBox_ex.R. - Clarified spread/connect documentation to state that spread/align return updated objects (no in-place mutation) and that connectors should use the returned boxes.
- Improved interactive example ergonomics by pausing between graph pages in multi-plot examples.
- Added
box_fn_argsparameter toboxGrob()for passing extra arguments directly to the box drawing function. The default is nowlist(r = unit(5, "pt")), giving every box a fixed 5 pt corner radius (approximately equivalent to the widely-used 5 px CSSborder-radius) regardless of box size — solving the issue where larger boxes had visibly rounder corners than smaller ones. Override per box or globally viaoptions(boxGrobFnArgs = list(...)). - Added
equalizeHeights()for flowchart box lists, mirroring the existingequalizeWidths(). It sets selected boxes to a shared height (defaulting to the tallest among the selection) and supports the samesubelementpath syntax asequalizeWidths(). - Added
excludetospreadVertical()/spreadHorizontal()and the S3spread()wrapper, allowing side branches to be left out of the main spread while preserving them in the flowchart list for lateralign(),move(), andconnect()calls. - Improved
spread()span handling: explicitfrom/tospans now work naturally withmarginas an inset inside that span (for examplespread(axis = "x", from = 0, to = 0.7, margin = 0.05)spreads within the left 70% of the viewport with padding), and subelement spreads can use deferredposition()endpoints such asfrom = position("log", "top", "y").
Show all changes in 3.4.0Hide the rest of the changes in 3.4.0
- Added
referencestoalignVertical()/alignHorizontal()and the S3align()wrapper. Supplying two references aligns the target to their midpoint on the selected axis, useful for centering side boxes between the main boxes before and after them. - Clarified and tested
moveBox()/move()justification semantics: for absolute moves,just = "right"makesxthe right border,just = "left"makesxthe left border, and the same edge-based interpretation applies vertically for top/bottom. - Added one-to-many grouped side fan-out support to the S3
connect()API forconnect("source", "group", type = "side"). The shared fan-out bus now honorsside_route = "outside"andside_offsetbefore branching to the destination boxes, which keeps side-branch arrows away from the source box edge. - Added many-to-one grouped side fan-in to the S3
connect()API forconnect(list("a", "b"), "target", type = "side"). The shared return bus now honorsside/end_sideandside_route/side_offset, routing to the requested outer side instead of letting each line independently pick the closest side of the target. - Fixed one-to-one
connect(..., type = "side")connectors so they honorside_route/side_offset. The vertical segment now steps out from the source box edge by the offset (matching the grouped fan-in/fan-out behavior); previously the offset was ignored and the line hugged the box edge. Useside_route = "edge"to keep the old edge-hugging route. - Extended connector labels to grouped side fan-out connectors.
labelcan now be used directly on a groupedtype = "side"fan-out; the label is centered on the offset bus, drawn on the outgoing line, and uses a semi-transparent white background by default so the line remains visually legible. - Added and expanded alternate flowchart shape examples using
boxEllipseGrob(),boxDatabaseGrob(),boxDocumentGrob(),boxDocumentsGrob(),boxDiamondGrob(), andboxTapeGrob()together withspread()/align()positioning. - Improved alternate shape helpers so non-rectangular shapes add appropriate text padding and expose visible bounds for connector anchoring. This keeps labels inside ellipse/database/document/tape shapes and lets connectors hit the visible shape edge instead of the surrounding viewport, and
fan_in_toptrunks now terminate exactly on the target's top edge. - Added
position()with relative moves. - Added dotted arrows lines for flowcharts
- Added regex selector for box lists
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-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: Gmisc/tests/testthat/test-bezier.R (.Names: 2) Gmisc/tests/testthat/test-getDescriptionStats.R (.Names: 2, .Dim: 1, .Dimnames: 1) Gmisc/tests/testthat/test-getDescriptionStats_missing_data.R (.Dim: 9, .Dimnames: 9, .Names: 9) Gmisc/tests/testthat/test-getDescriptionStats_p-values.R (.Names: 8, .Dim: 7, .Dimnames: 7) '.Names' should be changed to 'names'. '.Dim' should be changed to 'dim'. '.Dimnames' should be changed to 'dimnames'.
- NOTE8 OK, 5 NOTENow
- NOTE10 OK, 3 NOTE2026-07-16
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Documentation
- Help pages
- 101 (31 internal)includes a package overview page
- Examples that run
- 98%45 run in a plain check · 1 never run
- Exported functions with examples
- 86%
- Documented parameters
- 89%
- Return-value docs
- 88%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 93%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
9 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/gforge/gmisc on 2026-10-11.
The R CMD check workflow runs on Linux
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-01-17Seen in the repository: .github/copilot-instructions.mdPull request: opened by its own account
- Claude Codefirst seen on or before 2026-06-10Commits: at least 1 crediting it in the message
- Claude Sonnet 4.61 commit · Jun 2026
Dependencies
Installing Gmisc adds 58 packages (30 with compiled code, 57 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 3.4.0Latest
- 3.3.0
- RR 4.6.0 released · 2026-04-24
- 3.2.02026-03-06 · diff ↗ ·
added 10 exports
MidDistanceX, MidDistanceY, align, append, boxHeaderGrob, connect, flowchart, insert, move, spread - 3.1.02026-01-12 · diff ↗ ·
added 19 exports
boxDatabaseGrob, boxDiamondGrob, boxDocumentGrob, boxDocumentsGrob, boxEllipseGrob, boxRackGrob, boxServerGrob, boxTapeGrob, database_box_fn, diamond_rounded_box_fn, diamond_sharp_box_fn, document_box_fn, documents_box_fn, ellipse_box_fn, labelConnector, rack_box_fn, server_box_fn, setConnectorLabels, tape_box_fn - 3.0.42025-08-19 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 3.0.32023-08-26 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 3.0.22023-03-13 · diff ↗
- 3.0.12022-11-19 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 3.0.0
- 2.1.02021-07-23 · diff ↗
- RR 4.1.0 released · 2021-05-18
Show 33 earlier eventsHide 33 earlier events
- 2.0.22021-05-04 · diff ↗
- 2.0.12021-02-10 · diff ↗
- 1.11.02020-07-03 · diff ↗ ·
added 5 exports
alignHorizontal, alignVertical, moveBox, spreadHorizontal, spreadVertical - 1.10.0
- RR 4.0.0 released · 2020-04-24
- 1.9.22020-03-06 · diff ↗
- 1.9.12019-12-07 · diff ↗
- 1.9.02019-07-07 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.8.12019-04-14 · diff ↗
- 1.82019-01-09 · diff ↗
- 1.7
- 1.6.42018-09-20 · diff ↗
- 1.6.22018-06-20 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.6.12018-04-21 · diff ↗
- 1.5
- RR 3.4.0 released · 2017-04-21
- 1.4.1
- 1.4
- RR 3.3.0 released · 2016-05-03
- 1.3.12016-02-07 · diff ↗
- 1.3
- RR 3.2.0 released · 2015-04-16
- 1.12015-03-04 · diff ↗ ·
added 6 exports
getPvalAnova, getPvalChiSq, getPvalFisher, getPvalKruskal, getPvalWilcox, gnrlBezierPoints - 1.02015-01-04 · diff ↗ ·
removed 11 exports
fpColors, fpDrawCircleCI, fpDrawDiamondCI, fpDrawNormalCI, fpDrawPointCI, fpDrawSummaryCI, getTicks, htmlTable, outputInt, pvalueFormatter, splitLines4Tableadded 2 exports
fastDoCall, mergeDesc - 0.6.7
- 0.6.42014-06-16 · diff ↗
- 0.6.2.3
- RR 3.1.0 released · 2014-04-10
- 0.6.2.02014-02-23 · diff ↗
- 0.6.0.12014-02-02
- RR 3.0.0 released · 2013-04-03
Package metadata
- First published
- 2014-02-02
- Total releases
- 35 / 12 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 1.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("Gmisc")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.