View source: R/sequence-visualisations-extended.R
| plot_sequence_entropy | R Documentation |
Plot position-wise state entropy
plot_sequence_entropy(
data,
sequence_id_col = "sequence_id",
order_col = "sequence_order",
state_col = "state",
base = 2,
normalise = TRUE,
...
)
data |
Long-format sequence data or a prepared result. |
sequence_id_col, order_col, state_col |
Core sequence columns. |
base |
Logarithm base. |
normalise |
Divide entropy by the maximum entropy for the observed alphabet. |
... |
Additional arguments passed to |
A data frame of position-wise entropy values, 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_entropy(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.