| plot_transition_diagram | R Documentation |
Draws a state transition diagram with event counts annotated on edges. Uses a layered layout that adapts to any number of states and automatically routes arrows around intermediate state boxes using Bezier curves when needed.
plot_transition_diagram(
structure,
msdata = NULL,
col = NULL,
main = "Transition Diagram",
xlab = "",
ylab = "",
...
)
structure |
An |
msdata |
Optional |
col |
Node colors. Default uses the standard palette. |
main |
Title. |
xlab, ylab |
Optional axis labels; defaults are blank because graph coordinates have no statistical scale. |
... |
Ignored. |
No return value, called for its side effect of producing a plot.
The layout is descriptive and preserves the validated DAG. It does not
represent cycles/recurrent visits, transition intensity, uncertainty, or
edge direction over calendar time. Counts are shown only when a compatible
msdata object is supplied.
ms <- clinical_states()
plot_transition_diagram(ms, xlab = "Graph layer")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.