rn_transition | R Documentation |
Create transition network
rn_transition(
phaseSequence,
threshold = NA,
doMatrixPlot = TRUE,
doNetworkPlot = TRUE,
excludeOther = FALSE,
excludeNorec = TRUE,
returnGraph = FALSE
)
phaseSequence |
A vector with names or numbers that represent a sequence of phases or order parameter dynamics. If a named numeric vector is passed, the names attribute will be used to represent the phases. If the variable |
threshold |
Provide a threshold for the relative frequencies. Values below the threshold will be set to |
doMatrixPlot |
default( |
doNetworkPlot |
default( |
excludeOther |
Should the phase "Other" be excluded from plots? (default = |
excludeNorec |
Should the category "No recurrence" be excluded from plots? (default = |
returnGraph |
Return an |
A transition matrix based on relative frequencies
Fred Hasselman
Matti Heino
# This will output the transition matrix, a plot of the matrix and a transition network plot.
y <- c("Happy", "Happy", "Sad", "Neutral", "Neutral", "Angry", "Sad", "Sad", "Neutral")
TM <- rn_transition(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.