5 xt Structure
The Timeseries (xt
) format is created to timeseries data and metadata.
It is a list of lists with the following fields:
- x List of datetime vectors that correspond to
y
values. - x2 Optional list of datetime vectors that correspond to
y2
values. If not provided,x
is used. - y List of numeric vectors that correspond to
x
values and will be plotted on the left y-axis. - y2 Optional list of numeric vectors that correspond to
x2
values and will be plotted on the right y-axis. - xunits Character specifying the x-axis units.
- yunits Character specifying the y-axis units.
- y2units Character specifying the y2-axis units.
- Group List of factors the define groups for each datapoint.
- Shade Binary vector specifying windows of the x-axis to shade. (e.g. for light/dark, sleep/wake cycles, etc.)
- Reference Character giving the URL of a relevant publication if available.