pathLabel: Format a path coefficient annotation

View source: R/utils.R

pathLabelR Documentation

Format a path coefficient annotation

Description

pathLabel builds the arrow annotation for a path diagram as a plotmath expression, e.g. 'b[1] == "0.42***"', so subscripted path names render as real subscripts on any graphics device.

Usage

pathLabel(name, est, p, showName = TRUE, showEst = TRUE, showSig = TRUE)

Arguments

name

Path name as plotmath (e.g. 'a' or 'b[1]').

est

Estimated coefficient.

p

The p value, converted to significance stars.

showName

Whether to include the path name.

showEst

Whether to include the estimate.

showSig

Whether to include the significance stars.


medmod documentation built on July 16, 2026, 9:07 a.m.