Package: hypnoR Title: Hypnogram Handling, Plotting, and Sleep Architecture Metrics Version: 0.1.0 Authors@R: c( person("Lucas", "França", email = "lucas.franca@northumbria.ac.uk", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-0853-1319")), person("Mario", "Leocadio-Miguel", email = "mario.miguel@northumbria.ac.uk", role = "aut", comment = c(ORCID = "0000-0002-7248-3529")) ) Description: 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(). License: MIT + file LICENSE Encoding: UTF-8 Roxygen: list(markdown = TRUE) VignetteBuilder: knitr Depends: R (>= 4.1.0) Imports: cli (>= 3.6.0) Suggests: dplyr (>= 1.1.0), forcats (>= 1.0.0), ggplot2 (>= 3.4.0), knitr, lubridate (>= 1.9.0), pkgdown, rlang (>= 1.1.0), rmarkdown, testthat (>= 3.0.0), tibble (>= 3.0.0), tidyr (>= 1.3.0) Config/testthat/edition: 3 URL: https://hypnor.circadia-lab.uk, https://github.com/circadia-bio/hypnoR BugReports: https://github.com/circadia-bio/hypnoR/issues Config/roxygen2/version: 8.0.0 Repository: https://circadia-bio.r-universe.dev Date/Publication: 2026-06-29 05:20:45 UTC RemoteUrl: https://github.com/circadia-bio/hypnoR RemoteRef: main RemoteSha: 3b0e51c9cb495addbe8425c88ac85d06693e175c NeedsCompilation: no Packaged: 2026-07-01 23:57:10 UTC; root Author: Lucas França [aut, cre] (ORCID: ), Mario Leocadio-Miguel [aut] (ORCID: ) Maintainer: Lucas França