plot_sleep_start_end {lifelogr}R Documentation

A function to plot sleep each night by start time and end time.

Description

Returns a plot with start time of sleep and end time of sleep each night, colored by weekday vs. weekend.

Usage

plot_sleep_start_end(person, color_var = "day_type")

Arguments

person

An instance of the Person class

color_var

"day_type" by default for weekend/weekday, or "day_of_week" for day of week. Determines color of the lines.

Value

NULL, but plots print to screen

Examples

data(EX)
plot_sleep_start_end(person = EX)
plot_sleep_start_end(person = EX, "day_of_week")


[Package lifelogr version 0.1.0 Index]