plot_sleep: Plot sleep.

Description Usage Arguments Value Examples

View source: R/viz_sleep.R

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

1
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

1
2

lifelogr documentation built on May 2, 2019, 6:11 a.m.