add_phase | R Documentation |
Function to overlay phase information on data
add_phase(x, times, labels = NULL)
x |
a 'sleep', 'activity', or 'stress' object produced by 'read_wrap' |
times |
a vector of UTC times that will serve as cutpoints an the 'startTimeInSeconds' variable. There should be one fewer 'times' than the desired number of phase to be produced. |
labels |
a vector of the same length as 'times' containing labels for the phases. Optional. If 'labels' is 'NULL' the phase labels will be 1, 2, 3, etc.. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.