在胎週数別出生体重(箱ひげ図)

在胎週数別の出生体重分布を比較する箱ひげ図テンプレート。

出生体重在胎週数箱ひげ新生児
在胎週数別出生体重(箱ひげ図)

R Code (ggplot2)

library(ggplot2)

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

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Gestational Age", limits = c(0, 6)) +
  scale_y_continuous(name = "Birth Weight (g)", limits = c(500, 5000)) +
  labs(title = "Birth Weight by GA (Boxplot)") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))