Learn R Programming

lifelogr (version 0.1.0)

plot_sleep_start_end: 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

Run this code
data(EX)
plot_sleep_start_end(person = EX)
plot_sleep_start_end(person = EX, "day_of_week")

Run the code above in your browser using DataLab