Package: Gmisc 3.4.0

Gmisc: Descriptive Statistics, Transition Plots, and More

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.

Authors:Max Gordon [aut, cre]

Gmisc_3.4.0.tar.gz
Gmisc_3.4.0.zip(r-4.7)Gmisc_3.4.0.zip(r-4.6)Gmisc_3.4.0.zip(r-4.5)
Gmisc_3.4.0.tgz(r-4.6-x86_64)Gmisc_3.4.0.tgz(r-4.6-arm64)Gmisc_3.4.0.tgz(r-4.5-x86_64)Gmisc_3.4.0.tgz(r-4.5-arm64)
Gmisc_3.4.0.tar.gz(r-4.7-arm64)Gmisc_3.4.0.tar.gz(r-4.7-x86_64)Gmisc_3.4.0.tar.gz(r-4.6-arm64)Gmisc_3.4.0.tar.gz(r-4.6-x86_64)
Gmisc_3.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
Gmisc/json (API)

# Install 'Gmisc' in R:
install.packages('Gmisc', repos = c('https://gforge.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gforge/gmisc/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

11.82 score 52 stars 2 packages 313 scripts 5.3k downloads 20 mentions 77 exports 63 dependencies

Last updated from:ef40e7061b. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK204
linux-devel-x86_64OK202
source / vignettesOK242
linux-release-arm64OK204
linux-release-x86_64OK198
macos-release-arm64OK210
macos-release-x86_64OK406
macos-oldrel-arm64OK175
macos-oldrel-x86_64OK306
windows-develOK196
windows-releaseOK168
windows-oldrelOK169
wasm-releaseOK183

Exports:alignalignHorizontalalignVerticalappendbezierArrowGradientbezierArrowSmplboxDatabaseGrobboxDiamondGrobboxDocumentGrobboxDocumentsGrobboxEllipseGrobboxGrobboxHeaderGrobboxPropGrobboxRackGrobboxServerGrobboxTapeGrobconnectconnectGrobconvertShowMissingcoordscopyAllNewAttributesdatabase_box_fndescGetMissingdescribeFactorsdescribeMeandescribeMediandescribePropdiamond_rounded_box_fndiamond_sharp_box_fndistancedocument_box_fndocuments_box_fndocx_documentellipse_box_fnequalizeHeightsequalizeWidthsfastDoCallfigCapNofigCapNoLastfigCapNoNextflowchartforestplot2getDescriptionStatsBygetPvalAnovagetPvalChiSqgetPvalFishergetPvalKruskalgetPvalWilcoxgetSvdMostInfluentialgnrlBezierPointshasinsertinsertRowAndKeepAttrlabelConnectormergeDescmergeListsMidDistanceXMidDistanceYmovemoveBoxpathJoinphaseLabelpositionrack_box_fnretrieveserver_box_fnset_column_labelsset_column_unitssetConnectorLabelsspreadspreadHorizontalspreadVerticaltape_box_fntime2spanTxttransitionPlotyamlDump

Dependencies:abindbackportsbase64encbslibcachemcheckmatecliclustercolorspacecpp11data.tabledigestevaluatefarverfastmapfontawesomeforeignforestplotFormulafsgenericsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelubridatemagrittrmemoisemimennetR6rappdirsRColorBrewerRcpprlangrmarkdownrpartrstudioapiS7sassscalesstringistringrtimechangetinytexvctrsviridisLitewithrxfunXMLyaml

Building a flowchart
Flowchart | CONSORT phase labels between grouped stages | CONSORT-style flowchart | Dotted return arrows for censored participants | Consistent grouped widths and global text padding | Axis-preserving connectors for shared targets | Basic components explained | A basic box | A box with proportions | The box coordinates | Additional box shapes | Standard flowchart shapes | Connecting the boxes | Alignment | Spreading | Complex nested flowcharts with boxHeaderGrob | The S3 Layout API | Math expressions in boxes | Grid & some background info | Basics | Relative units | Absolute units | A complex example | Tips for debugging

Last update: 2026-07-03
Started: 2016-09-17

Descriptives statistics for Table 1
The basics of getDescriptionStatsBy | Integration with htmlTable | Extra everything | P-values | Custom p-values | Using mergeDesc

Last update: 2026-05-30
Started: 2015-03-04

Introduction to the Transition-class
Introduction | Generate some data | Basic use | Adding a third dimension | Multiple transitions

Last update: 2026-05-30
Started: 2015-03-04

Introduction to the transitionPlot (deprecated)
Introduction | Generate some data | Basic use | Labels and stuff | Using 3D matrices

Last update: 2026-05-30
Started: 2015-01-18

Readme and manuals

Help Manual

Help pageTopics
Collection of functions for plotting relations, generating tables, and more.Gmisc-package Gmisc
Align boxesalign align.default align.Gmisc_list_of_boxes align.list alignHorizontal alignVertical
Append to list of boxes (S3)append append.default append.Gmisc_list_of_boxes
A bezier arrow with gradientbezierArrowGradient
A simple bezier arrowbezierArrowSmpl
Create a box with textboxGrob heightDetails.box plot.box print.box widthDetails.box
Create a composite box with header and body textboxHeaderGrob
Create a box with a color splitboxPropGrob
Additional box shape helpers for `boxGrob`boxDatabaseGrob boxDiamondGrob boxDocumentGrob boxDocumentsGrob boxEllipseGrob boxRackGrob boxServerGrob boxShapes boxTapeGrob database_box_fn diamond_rounded_box_fn diamond_sharp_box_fn documents_box_fn document_box_fn ellipse_box_fn rack_box_fn server_box_fn tape_box_fn
Gets offsetted linescalculateLinesAndArrow
Connect boxes with arrowsconnect connect.default connect.Gmisc_list_of_boxes connectGrob grid.draw.connect_boxes_list plot.connect_boxes plot.connect_boxes_list print.connect_boxes print.connect_boxes_list
A function for converting a show_missing variable.convertShowMissing
Get the box coordinatescoords
A simple thing to keep the attributescopyAllNewAttributes
Get statistics for missing datadescGetMissing
Describes factor variablesdescribeFactors
Describe the meandescribeMean
A function that returns a description median that contains the interquartile range or the full rangedescribeMedian
A function that returns a description proportion that contains the number and the percentagedescribeProp
Get the distance between grid objectsdistance print.Gmisc_unit
Formatter wrapper for 'html_document', facilitates easier porting to docxdocx_document
Equalize box heightsequalizeHeights
Equalize box widthsequalizeWidths
An alternative to the internal 'do.call'fastDoCall
Adds a figure caption numberfigCapNo
Gets the last figure caption numberfigCapNoLast
Gets the next figure caption numberfigCapNoNext
Create a flowchart objectflowchart
Gets the bezier points adjusted for an arrowgetBezierAdj4Arrw
Creating of description statisticsgetDescriptionStatsBy htmlTable.Gmisc_getDescriptionStatsBy knit_print.Gmisc_getDescriptionStatsBy length.Gmisc_getDescriptionStatsBy print.Gmisc_getDescriptionStatsBy
P-value extractors for 'getDescriptionStatsBy'getPvalAnova getPvalChiSq getPvalFisher getPvalKruskal getPvalWilcox
Gets the maximum contributor variables from svd()getSvdMostInfluential
Generates a generalized Bézier linegnrlBezierPoints
An R alternative to the lodash 'has' in JavaScripthas
Insert element into a list of boxes (S3)insert insert.default insert.Gmisc_list_of_boxes
Insert a row into a matrixinsertRowAndKeepAttr
Label connector grobslabelConnector
Prepares a matrix for 'htmlTable' from a listmergeDesc
Merging of multiple listsmergeLists
Calculate midpoint between two unitsMidDistanceX MidDistanceY
Move boxes (S3)move move.default move.Gmisc_list_of_boxes
Move a boxGrobmoveBox
A path join functionpathJoin
Add a phase label to a flowchart stage (S3)phaseLabel phaseLabel.default phaseLabel.Gmisc_list_of_boxes
Reference a flowchart box positionposition position.box position.coords position.default
Add a p-value column to the resultsprAddDescStats
Add a units column to the resultsprAddDescUnitColumn
Convert the by-list into a matrix compatible formatprAddEmptyVals
Add a total column to the resultsprAddTotalDescColumn
Add a sub-label to 'boxPropGrob'prBuildSubLabel
Converts an object to coordinatesprConvert2Coords
Creates coordinates for boxprCreateBoxCoordinates
Helper to [getDescriptionStatsBy()]prFactorDescs
Fix rownames for descriptive resultsprFixDescRownames
Get default from/to values for an axisprGetBoxAxisDefaults
Retrieve basic description stats by headerprGetDescHeader
Print a connector label objectprint.Gmisc_connector_label
Output boxesprint.Gmisc_list_of_boxes
Helper to [getDescriptionStatsBy()]prNumericDescs
Collapses a vector for throwing errorsprPasteVec
Helper to [getDescriptionStatsBy()]prPropDescs
An R alternative to the lodash 'get' in JavaScriptretrieve
Add [Hmisc::label()] to multiple columnsset_column_labels
Add [Hmisc::unit()] to multiple columnsset_column_units
Attach labels to a connector objectsetConnectorLabels
Spread boxes (S3)spread spread.default spread.Gmisc_list_of_boxes spread.list spreadHorizontal spreadVertical
A dense time-span texttime2spanTxt
A reference class for generating transition plotsTransition Transition-class
A transition plottransitionPlot
Outputs an objectyamlDump