plot_ts: Visualize time series

View source: R/plot.R

plot_tsR Documentation

Visualize time series

Description

This function visualizes the data time series.

Usage

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

Arguments

data

[fHMM_data]
An object of class fHMM_data.

decoding

[NULL | numeric() | matrix()]
Either NULL or an object of class fHMM_decoding.

colors

[NULL | character()]
Either NULL (default) or a character vector of color names or hexadecimal RGB triplets.

events

[NULL | fHMM_events]
An object of class fHMM_events.

title

[NULL | character(1)]
Optionally a character for a custom title.

from

[NULL | character(1)]
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

[NULL | character(1)]
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.

Value

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


fHMM documentation built on May 5, 2026, 5:07 p.m.