plot_sleep {lifelogr} | R Documentation |
Plot sleep.
Description
Prints one of six plots: two are related to quantity of sleep, and four are related to quality of sleep 1. Sleep by day of week (bar graph) 2. Start and end of sleep period for each day in the range 3. Duration of sleep and time asleep over time 4. Proportion of time spent restless out of total sleep duration over time 5. Time spent restless over time (in minutes) 6. Sleep quality over time (subjective score, out of 100)
Usage
plot_sleep(person, plot_type = "all", ...)
Arguments
person |
An instance of the Person class |
plot_type |
The type of plot. Options include: "by_weekday", "by_start_end_time", "by_datetime", "by_restless_prop", "by_restless_min", "by_quality". Default is to plot all six. |
... |
Extra arguments used to specify the 'color_var' for the 'by_start_end_time' plot |
Value
NULL, but plots print to screen
Examples
data(EX)
plot_sleep(person = EX)
[Package lifelogr version 0.1.0 Index]