Package: hypnoR 0.1.0
hypnoR: Hypnogram Handling, Plotting, and Sleep Architecture Metrics
Provides a staging-agnostic layer for hypnogram ingestion, sleep architecture metric computation, cycle segmentation, and transition analysis. Accepts full AASM-staged hypnograms (W / N1 / N2 / N3 / REM) from mrpheus and coarser actigraphy-derived hypnograms (W / Sleep / Quiet sleep) from zeitR; all metric functions degrade gracefully depending on staging resolution. Includes publication-ready plotting via theme_circadia(). Designed as the hypnogram layer of the Circadia Lab ecosystem, feeding into syncR::sync().
Authors:
hypnoR_0.1.0.tar.gz
hypnoR_0.1.0.zip(r-4.7)hypnoR_0.1.0.zip(r-4.6)hypnoR_0.1.0.zip(r-4.5)
hypnoR_0.1.0.tgz(r-4.6-any)hypnoR_0.1.0.tgz(r-4.5-any)
hypnoR_0.1.0.tar.gz(r-4.7-any)hypnoR_0.1.0.tar.gz(r-4.6-any)
hypnoR_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
hypnoR/json (API)
| # Install 'hypnoR' in R: |
| install.packages('hypnoR', repos = c('https://circadia-bio.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/circadia-bio/hypnor/issues
Pkgdown/docs site:https://hypnor.circadia-lab.uk
Last updated from:3b0e51c9cb (on main). Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 130 | ||
| source / vignettes | OK | 228 | ||
| linux-release-x86_64 | OK | 115 | ||
| macos-release-arm64 | OK | 153 | ||
| macos-oldrel-arm64 | OK | 124 | ||
| windows-devel | OK | 72 | ||
| windows-release | OK | 70 | ||
| windows-oldrel | OK | 75 | ||
| wasm-release | OK | 111 |
Exports:compute_cyclescompute_sleep_architecturecompute_transitionsplot_architectureplot_hypnogramplot_transition_matrixread_hypnogram
Dependencies:cli
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Detect NREM/REM sleep cycles | compute_cycles |
| Compute sleep architecture metrics | compute_sleep_architecture |
| Compute stage-transition statistics | compute_transitions |
| Plot sleep architecture as a bar chart | plot_architecture |
| Plot a hypnogram | plot_hypnogram |
| Plot a stage-transition heatmap | plot_transition_matrix |
| Read a hypnogram from file | read_hypnogram |
