Skip to contents

Plot a Transition Network Model from a Matrix of Edge Weights

Usage

plot_model(x, labels, colors, ...)

Arguments

x

A square matrix of edge weights.

labels

Optional character vector of node labels.

colors

An optional character vector of node colors to use.

...

Additional arguments passed to cograph::splot() or cograph::plot_htna().

Value

See plot.tna().

Examples

m <- matrix(rexp(25), 5, 5)
plot_model(m)