Gmisc3.1.0 package

Descriptive Statistics, Transition Plots, and More

align

Align boxes

assert

Checks if unit or number 0-1

bezierArrowGradient

A bezier arrow with gradient

bezierArrowSmpl

A simple bezier arrow

box

Create a box with text

boxPropGrob

Create a box with a color split

boxShapes

Additional box shape helpers for boxGrob

calculateLinesAndArrow

Gets offsetted lines

connect

Connect boxes with arrows

convertShowMissing

A function for converting a show_missing variable.

coords

Get the box coordinates

copyAllNewAttributes

A simple thing to keep the attributes

descGetMissing

Get statistics for missing data

describeFactors

Describes factor variables

describeMean

Describe the mean

describeMedian

A function that returns a description median that contains the interqu...

describeProp

A function that returns a description proportion that contains the num...

distance

Get the distance between grid objects

docx_document

Formatter wrapper for html_document, facilitates easier porting to d...

fastDoCall

An alternative to the internal do.call

figCapNo

Adds a figure caption number

figCapNoLast

Gets the last figure caption number

figCapNoNext

Gets the next figure caption number

getAbsoluteWidth

Translates "npc" widths into absolute units

getBezierAdj4Arrw

Gets the bezier points adjusted for an arrow

getDescriptionStatsBy

Creating of description statistics

getGridVal

Gets grid value

getPval

P-value extractors for getDescriptionStatsBy

getSvdMostInfluential

Gets the maximum contributor variables from svd()

getVectorAngle

Gets an angle

Gmisc-deprecated

Deprecated function(s) in Gmisc

Gmisc-package

Collection of functions for plotting relations, generating tables, and...

gnrlBezierPoints

Generates a generalized Bézier line

has

An R alternative to the lodash has in JavaScript

htmlTable_latex

A wrapper around the htmlTable/latex function

insertRowAndKeepAttr

Insert a row into a matrix

isHorizontal

Just a simple help with interpreting the radians

labelConnector

Label connector grobs

mergeDesc

Prepares a matrix for htmlTable from a list

mergeLists_internal

A helper function for mergeLists that does the actual work.

mergeLists

Merging of multiple lists

moveBox

Move a boxGrob

pathJoin

A path join function

prAddDescStats

Add a p-value column to the results

prAddDescUnitColumn

Add a units column to the results

prAddEmptyVals

Convert the by-list into a matrix compatible format

prAddTotalDescColumn

Add a total column to the results

prBuildSubLabel

Add a sub-label to boxPropGrob

prCaptionFix

Fixes the caption for elements without caption

prConvert2Coords

Converts an object to coordinates

prCreateBoxCoordinates

Creates coordinates for box

prDescGetAndValidateDefaultRef

A helper function for the description stats

prFactorDescs

Helper to [getDescriptionStatsBy()]

prFixDescRownames

Fix rownames for descriptive results

prFtpHeaderStyle

Helper to ftp_document

prFtpOtherChanges

Changes lines for XML-conformity

prFtpOtherRemoval

Removes other unwanted lines

prFtpScriptRemoval

Removes the <script>*</scrip>

prGetBoxAxisDefaults

Get default from/to values for an axis

prGetDescHeader

Retrieve basic description stats by header

prGetStatistics

Get statistics according to the type

prGetTextGrobCex

Just a simple acces to the gp$cex parameter

prGridPlotTitle

Adds a title to the plot

print.Gmisc_connector_label

Print a connector label object

print.Gmisc_list_of_boxes

Output boxes

prNumericDescs

Helper to [getDescriptionStatsBy()]

prPasteVec

Collapses a vector for throwing errors

prPropDescs

Helper to [getDescriptionStatsBy()]

prPushMarginViewport

Pushes viewport with margins

prSetMaxWidth

Updates the css max-width

prTcMatchClr

Finds the matching colors for the new addition based on the original s...

prTcPlotArrows

Plots the arrows within a single transition set

prTcPlotBoxColumn

Plots a column of boxes

prTcValidateAndPrepClr

Checks and prepares colors

prTpGetBoxPositions

Gets the box position

prTpGetBoxPropClr

Gets the color for the given box

prTpGetBoxSizedTextGrob

Gets the text size for the box

prTpGetColors

Gets a set of colors or just one color

prTpPlotArrows

Plots the arrows

prTpPlotBox

Plots the box for the transition plot

prTpPlotBoxes

Plot boxes and arrows

retrieve

An R alternative to the lodash get in JavaScript

set_column_labels

Add [Hmisc::label()] to multiple columns

set_column_units

Add [Hmisc::unit()] to multiple columns

setConnectorLabels

Attach labels to a connector object

spread

Spread boxes

time2spanTxt

A dense time-span text

Transition-class

A reference class for generating transition plots

transitionPlot

A transition plot

validateAndConvertVectorInputs

Checks the input of a vector

yamlDump

Outputs an object

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.

  • Maintainer: Max Gordon
  • License: GPL (>= 3)
  • Last published: 2026-01-12