View source: R/sequence-visualisations-extended.R
| plot_transition_network | R Documentation |
Plot a first-order transition network
plot_transition_network(
network,
weight_col = "weight",
minimum_weight = 0,
vertex_cex = 1,
edge_scale = 5,
...
)
network |
A first-order network from |
weight_col |
Edge-weight column. |
minimum_weight |
Minimum plotted edge weight. |
vertex_cex |
Vertex label size. |
edge_scale |
Edge-width multiplier. |
... |
Additional arguments passed to |
The plotted network rows, invisibly.
data <- data.frame(sequence_id = rep(c("a", "b"), each = 4L),
sequence_order = rep(1:4, 2L),
state = c("A", "B", "C", "D", "A", "C", "C", "D"))
plot_transition_network(create_transition_network(data, normalise = "from"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.