Skip to content

Gmisc

3.4.0

Descriptive Statistics, Transition Plots, and More

2packages dependsuggested by 2
54.3Kdownloads / year
67.8%test coverage
8/13flavors OK

Overview

About

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.

Changes in 3.4.0
  • Added vertical_axis and horizontal_axis connector 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. Existing vertical and horizontal connector 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 via width. It correctly handles nested arm lists (arms that are themselves lists of boxes) by resolving their merged bounding box.
  • Added on_top to insert() for flowchart box lists. A box inserted with insert(..., 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 subsequent move()/align() operations. This is the lower-level overlay mechanism that phaseLabel() 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 in inst/examples/connectGrob_example.R, inst/examples/spreadBox_ex.R, and inst/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_args parameter to boxGrob() for passing extra arguments directly to the box drawing function. The default is now list(r = unit(5, "pt")), giving every box a fixed 5 pt corner radius (approximately equivalent to the widely-used 5 px CSS border-radius) regardless of box size — solving the issue where larger boxes had visibly rounder corners than smaller ones. Override per box or globally via options(boxGrobFnArgs = list(...)).
  • Added equalizeHeights() for flowchart box lists, mirroring the existing equalizeWidths(). It sets selected boxes to a shared height (defaulting to the tallest among the selection) and supports the same subelement path syntax as equalizeWidths().
  • Added exclude to spreadVertical()/spreadHorizontal() and the S3 spread() wrapper, allowing side branches to be left out of the main spread while preserving them in the flowchart list for later align(), move(), and connect() calls.
  • Improved spread() span handling: explicit from/to spans now work naturally with margin as an inset inside that span (for example spread(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 deferred position() endpoints such as from = position("log", "top", "y").
Show all changes in 3.4.0Hide the rest of the changes in 3.4.0
  • Added references to alignVertical()/alignHorizontal() and the S3 align() 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" makes x the right border, just = "left" makes x the 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 for connect("source", "group", type = "side"). The shared fan-out bus now honors side_route = "outside" and side_offset before 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 for connect(list("a", "b"), "target", type = "side"). The shared return bus now honors side/end_side and side_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 honor side_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. Use side_route = "edge" to keep the old edge-hugging route.
  • Extended connector labels to grouped side fan-out connectors. label can now be used directly on a grouped type = "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(), and boxTapeGrob() together with spread()/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_top trunks 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

CRAN checks
5NOTE8OK
Check messages
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'.

CRAN check page ↗

Slowest check: 5.9 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 3.4.0
READMEYes · 269 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 3.4.0Citation fileNoWebsiteYes
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

54.3K
CRAN downloads in the past year
Rank #1,837 · ~149/day · ~4.5K/mo
Daily download trend is not available in this view yet.
3.9K30 days
10.8K90 days
54.3K1 year
Compare downloads with other packages →
Also on606 r2u10 autocran3.6K conda_forge172 c2d4u

Repository

53Stars
14Forks
0Open issues
0Open PRs
2Releases
737Commits
13Commit identities
cranr
737 commits · Last activity 2026-07-03 · +1.9% stars, 30d
Responsiveness
How these are sampled
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

2025-03-05 · 512026-09-30 · 53
PracticesBeta

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.

Continuous integration (3)
GitHub ActionsR CMD check workflowTravis CI (config file)

The R CMD check workflow runs on Linux

Docs source (1)
README.Rmd
Coverage (1)
Coverage reporting
CRAN release process (1)
CRAN-SUBMISSION
Show all practicesHide 2 practices
Lint, format, editor (2)
lintrLint workflow
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-01-17
    Seen in the repository: .github/copilot-instructions.md
    Pull request: opened by its own account
  • Claude Codefirst seen on or before 2026-06-10
    Commits: at least 1 crediting it in the message
Models named in its commits
  • Claude Sonnet 4.61 commit · Jun 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
23 external dependencies (excludes base and recommended)

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.

Depends (2)
R >= 4.1.0htmlTable
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Depends 1 · Imports 1
Suggested by 2
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.6.0.1 (2014)
Releases (35)

Pick two releases to compare their code metrics.

  • 3.4.0Latest
    record
    2026-06-20 · current release · diff ↗ ·
    added 3 exports
    equalizeHeights, phaseLabel, position
  • 3.3.0
    record
    2026-06-02 · diff ↗ ·
    added 1 export
    equalizeWidths
  • R
    R 4.6.0 released · 2026-04-24
  • 3.2.0
    record
    2026-03-06 · diff ↗ ·
    added 10 exports
    MidDistanceX, MidDistanceY, align, append, boxHeaderGrob, connect, flowchart, insert, move, spread
  • 3.1.0
    record
    2026-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.4
    record
    2025-08-19 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 3.0.3
    record
    2023-08-26 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 3.0.2
    record
    2023-03-13 · diff ↗
  • 3.0.1
    record
    2022-11-19 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 3.0.0
    record
    2022-01-03 · diff ↗ ·
    added 2 exports
    set_column_labels, set_column_units
  • 2.1.0
    record
    2021-07-23 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
Show 33 earlier eventsHide 33 earlier events
  • 2.0.2
    record
    2021-05-04 · diff ↗
  • 2.0.1
    record
    2021-02-10 · diff ↗
  • 1.11.0
    record
    2020-07-03 · diff ↗ ·
    added 5 exports
    alignHorizontal, alignVertical, moveBox, spreadHorizontal, spreadVertical
  • 1.10.0
    record
    2020-05-06 · diff ↗ ·
    added 3 exports
    pathJoin, time2spanTxt, yamlDump
  • R
    R 4.0.0 released · 2020-04-24
  • 1.9.2
    record
    2020-03-06 · diff ↗
  • 1.9.1
    record
    2019-12-07 · diff ↗
  • 1.9.0
    record
    2019-07-07 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.8.1
    record
    2019-04-14 · diff ↗
  • 1.8
    record
    2019-01-09 · diff ↗
  • 1.7
    record
    2018-11-09 · diff ↗ ·
    added 2 exports
    has, retrieve
  • 1.6.4
    record
    2018-09-20 · diff ↗
  • 1.6.2
    record
    2018-06-20 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.6.1
    record
    2018-04-21 · diff ↗
  • 1.5
    record
    2017-10-19 · diff ↗ ·
    added 2 exports
    coords, distance
  • R
    R 3.4.0 released · 2017-04-21
  • 1.4.1
    record
    2016-12-27 · diff ↗ ·
    added 2 exports
    convertShowMissing, descGetMissing
  • 1.4
    record
    2016-10-04 · diff ↗ ·
    added 3 exports
    boxGrob, boxPropGrob, connectGrob
  • R
    R 3.3.0 released · 2016-05-03
  • 1.3.1
    record
    2016-02-07 · diff ↗
  • 1.3
    record
    2016-01-15 · diff ↗ ·
    added 1 export
    docx_document
  • R
    R 3.2.0 released · 2015-04-16
  • 1.1
    record
    2015-03-04 · diff ↗ ·
    added 6 exports
    getPvalAnova, getPvalChiSq, getPvalFisher, getPvalKruskal, getPvalWilcox, gnrlBezierPoints
  • 1.0
    record
    2015-01-04 · diff ↗ ·
    removed 11 exports
    fpColors, fpDrawCircleCI, fpDrawDiamondCI, fpDrawNormalCI, fpDrawPointCI, fpDrawSummaryCI, getTicks, htmlTable, outputInt, pvalueFormatter, splitLines4Table
    added 2 exports
    fastDoCall, mergeDesc
  • 0.6.7
    record
    2014-07-28 · diff ↗ ·
    added 3 exports
    figCapNo, figCapNoLast, figCapNoNext
  • 0.6.4
    record
    2014-06-16 · diff ↗
  • 0.6.2.3
    record
    2014-05-15 · diff ↗ ·
    removed 1 export
    bezierArrowSmplGradient
    added 1 export
    bezierArrowGradient
  • R
    R 3.1.0 released · 2014-04-10
  • 0.6.2.0
    record
    2014-02-23 · diff ↗
  • 0.6.0.1
    record
    2014-02-02
  • R
    R 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")
Gordon, M. (2026). Gmisc: Descriptive Statistics, Transition Plots, and More (Version 3.4.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for Gmisc version 3.4.0 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy