Description Usage Arguments Author(s) See Also Examples
Add a colour coded horizontal bar representing the state sequence to a plot of (presumably time-series) data.
1 2 3 4 |
states |
A vector of integers representing the states traversed |
x |
The time values where the states are observed ((1:length(states)-shiftx)/time.scale if NULL) |
ybot |
Vertical bottom limit of the bar. |
ytop |
Vertical top limit of the bar. |
dy |
Height of the bar. |
greyscale |
If TRUE produces a bar in greyscale. |
leg |
Array of state names, if present, produces a legend. |
J |
Number of states |
time.scale |
Resolution of the timescale |
shiftx |
Shift the bar forward or backwards horizontal by shiftx distance. |
Soren Hojsgaard sorenh@math.aau.dk
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.