View source: R/sequence-visualisations-extended.R
| plot_sequence_index | R Documentation |
Plot a sequence index heatmap
plot_sequence_index(
data,
sequence_id_col = "sequence_id",
order_col = "sequence_order",
state_col = "state",
sort_by = c("input", "length", "path"),
state_levels = NULL,
palette = "Dark 3",
show_sequence_labels = TRUE,
...
)
data |
Long-format sequence data or a prepared result. |
sequence_id_col, order_col, state_col |
Core sequence columns. |
sort_by |
|
state_levels |
Optional state ordering. |
palette |
Base HCL palette. |
show_sequence_labels |
Draw sequence identifiers. |
... |
Additional arguments passed to |
The plotted state-code matrix, 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_sequence_index(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.