睡眠構造図

睡眠構造図テンプレート。ポリソムノグラフィの睡眠段階推移を記録。

睡眠ポリソムノグラフィREM段階
睡眠構造図

R Code (ggplot2)

library(ggplot2)

# ---- Sleep Architecture ----
# あなたのデータを入力してください
df <- data.frame(
  x = c(),
  y = c()
)

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Time (hours)", limits = c(0, 8)) +
  scale_y_continuous(name = "Sleep Stage", limits = c(0, 5)) +
  labs(title = "Sleep Architecture") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))