Description Usage Arguments Examples
Plot a time series of activity values (by default, the counts on the vertical axis axis1).
1 |
agdb |
A |
var |
The activity variable (unquoted) to plot on the y-axis. |
color |
Activity line color. |
nrow, ncol |
Number of rows and columns. Relevant only if the activity data is grouped. |
1 2 3 4 5 6 7 8 9 10 | data("gtxplus1day")
sub_gt3x <- gtxplus1day %>%
dplyr::filter(timestamp <= lubridate::as_datetime("2012-06-27 18:00:00"))
data <- sub_gt3x %>%
collapse_epochs(60) %>%
apply_cole_kripke()
plot_activity(data, axis1, color = "gray")
plot_activity(data, axis1, color = "sleep")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.