コホート研究図

コホート研究のテンプレート。曝露群と非曝露群の累積罹患率を比較。

コホート前向き累積罹患率
コホート研究図

R Code (ggplot2)

library(ggplot2)

# ---- Cohort Study Diagram ----
# あなたのデータを入力してください
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 (years)", limits = c(0, 10)) +
  scale_y_continuous(name = "Cumulative incidence (%)", limits = c(0, 50)) +
  labs(title = "Cohort Study Diagram") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))