Learn R Programming

lifelogr (version 0.1.0)

plot_sleep_restless_prop: A function to plot the proportion of restless sleep over time.

Description

Returns a line plot plotting the proportion of restless sleep over time. The proportion is calculated as the difference between sleep duration and time spent asleep over sleep duration.

Usage

plot_sleep_restless_prop(person)

Arguments

person
An instance of the Person class

Value

NULL, but plots print to screen

Examples

Run this code
data(EX)
plot_sleep_restless_prop(person = EX)

Run the code above in your browser using DataLab