Skip to contents

Draws the unrolled graph with prompts on the horizontal axis and node types in rows (person-level latents on top, then context, states, sensor, response indicators and probes). Structural edges are gray, edges added by the declared motifs are black and dashed, so the plot remains readable in grayscale. Latent nodes are drawn as open circles.

Usage

# S3 method for dm_graph
plot(x, ...)

Arguments

x

A dm_graph.

...

Further arguments passed to plot; main replaces the default title.

Value

Invisibly, a numeric matrix with one row per node and the columns

x and y (the plotting coordinates). Called for its side effect, the plot.

Examples

plot(dm_graph(c("M2", "M4"), sensor = TRUE))

plot(dm_graph("M5", context = "observed", context_persistent = TRUE))