The edges width is proportional to the transition probability.

plot_hsmm_transitions(
  model,
  size = 20,
  label_size = NULL,
  label_color = "white",
  arrow_gap = NULL
)

Arguments

model

a hsmm or hsmm_spec object specifying the model for which the transition probabilities should be visualized.

size

(optional) the size of the nodes (hidden states).

label_size

(optional) the size of the labels, i.e. hidden state names.

label_color

(optional) the color of the labels. Default is white. Any valid color specification can be used here.

arrow_gap

(optional) a double value in [0,1] specifying the gap between the arrow tips and the nodes. If NULL (default value), the function adapts the value of this parameter to the specified size.

Value

a ggplot object.

Examples

my_model = simple_model plot_hsmm_transitions(model = my_model)