dag.letter: Write a DAG node symbol.

View source: R/dag.letter.R

dag.letterR Documentation

Write a DAG node symbol.

Description

Writes the node symbols, 'X' and 'Y' for exposure and outcome, 'C' and 'U' (with consecutive subscripts) for known and unknown covariables. Since v1.1.2, alt.symb allows the use of custom node symbols. Unknownness is identified by either node name 'unknown' or covariable type '2' in the DAG object. Note that adjusted nodes are marked by bar and underline; this currently does not apply to those marked as unknown.

Usage

dag.letter(dag, letter, x, y, alt.symb = TRUE)

Arguments

dag

The DAG for which a node is to be written.

letter

The node that is of interest.

x

X position.

y

Y position.

alt.symb

Boolean indicating if custom symbols (dag$symbols) should be used if available.

Author(s)

Lutz P Breitling <l.breitling@posteo.de>

See Also

dag.draw, dag.legend, write.paths


dagR documentation built on Oct. 9, 2022, 5:06 p.m.