timeseries_plot: Plot timeseries of observations

Description Usage Arguments Value

View source: R/timeseries_histogram_plotting.R

Description

Plot timeseries of observations

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
timeseries_plot(
  x,
  states,
  num_subjects,
  num_variables,
  variable_names = c("Var 1", "Var 2", "Var 3"),
  subject_names = c("Subject 1", "Subject 2", "Subject 3", "Subject 4"),
  xaxis = list(list(c(1, 900))),
  yaxis = NULL
)

Arguments

x

The data to be fit with an HMM in the form of a 3D array. The first index (row) corresponds to time, the second (column) to the variable number, and the third (matrix number) to the subject number.

states

A matrix with the columns containing the sequence of states that generated the data in x for the given subject.

num_subjects

The number of subjects/trials that generated the data.

num_variables

The number of variables in the data.

variable_names

A vector containing the names of the variables in the data x.

subject_names

A vector containing the names of the subjects generating the data x.

xaxis

A list containing a list for each subject containing vectors for each variable of the desired minimum and maximum x-axis value.

yaxis

A list containing a list for each subject containing vectors for each variable of the desired minimum and maximum y-axis value.

Value

A grid of plots of the time series for each subject and variable.


simonecollier/lizardHMM documentation built on Dec. 23, 2021, 2:24 a.m.