Plot a hypnodensity graph using `ggplot2` from the values returned from `score_stages_edf` function.
plot_hypnodensity(hypnodensity, stages = c("AWA", "REM", "N1", "N2", "N3"))
A `ggplot2` hypnodensity graph.
A hypnodensity dataframe as returned by the `score_stages_edf` function.
Vector of stages labels to plot.
Stephansen, J.B., Olesen, A.N., Olsen, M., Ambati, A., Leary, E.B., Moore, H.E., Carrillo, O., Lin, L., Han, F., Yan, H. and Sun, Y.L., 2018. Neural network analysis of sleep stages enables efficient diagnosis of narcolepsy. Nature communications, 9(1), p.5229.