plot_ts function

Visualize time series

Visualize time series

This function visualizes the data time series.

plot_ts( data, decoding, colors, events = NULL, title = NULL, from = NULL, to = NULL )

Arguments

  • data: An object of class fHMM_data.
  • decoding: Either NULL or an object of class fHMM_decoding.
  • colors: Either NULL (default) or a character vector of color names or hexadecimal RGB triplets.
  • events: An object of class fHMM_events.
  • title: Optionally a character for a custom title.
  • from: Optionally a character, a date in format "YYYY-MM-DD", setting the lower date bound for plotting. By default, from = NULL, i.e. no lower bound.
  • to: Optionally a character, a date in format "YYYY-MM-DD", setting the upper date bound for plotting. By default, to = NULL, i.e. no upper bound.

Returns

No return value. Draws a plot to the current device.

  • Maintainer: Lennart Oelschläger
  • License: GPL-3
  • Last published: 2025-03-24