Shows the distribution of transition times (durations) in a histogram plot.

plot_transition_time_histogram(
  obj,
  source = NULL,
  target = NULL,
  remove_outliers = F,
  time_unit = c("second", "minute", "hour", "day", "week", "year"),
  plotter = c("plotly", "ggplot2"),
  ...
)

Arguments

obj

object of class TransitionSystem: The Transition System object from which transition durations are extracted

source

character: Transition source status. Must be within the source statuses of the transition system.

target

character: Transition destination status. Must be within the target statuses of the transition system. If you do not specify any of the two arguments source or target, a drop-down menu will apear where you can select your desired transition. This feature is using package crosstalk and currently, only works when plotter is plotly.

remove_outliers

logical: Should outliers be removed? If set to TRUE, outliers beyond four standard deviations from the mean, will be removed recursively.

time_unit

character: time unit to be used in the output visualization. Can be one of these options: 'second', 'minute', 'hour', 'day', 'week', 'year'.

plotter

character: Which plotter package do you want to generate the visualization? Currently, only these options are supported: 'plotly', 'ggplot2'