Description Usage Arguments Value References
A hypnogram represents the stages of sleep as a function of time. plot_hypnogram()
plot a hypnogram using the ggplot2
library from stages sleep in an event dataframe. REM
stage is higlighted in red.
1 | plot_hypnogram(events, labels = c("N3", "N2", "N1", "REM", "AWA"))
|
events |
Events dataframe. Dataframe must have |
labels |
Sleep stages labels. Defaults to |
a ggplot object.
Silber MH, Ancoli-Israel S, Bonnet MH, Chokroverty S, Grigg-Damberger MM, et al. (2007). "The visual scoring of sleep in adults". Journal of Clinical Sleep Medicine. 3 (2): 121–31. PMID 17557422
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.