疾患有病率ピラミッド

疾患有病率ピラミッドテンプレート。年齢層別の有病率を性別で比較。

有病率ピラミッド年齢層疫学
疾患有病率ピラミッド

R Code (ggplot2)

library(ggplot2)

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

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Prevalence (%)", limits = c(0, 30)) +
  scale_y_continuous(name = "", limits = c(0, 9)) +
  labs(title = "Disease Prevalence Pyramid") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))