診断別PSA(箱ひげ図)

診断別のPSA値分布を比較する箱ひげ図テンプレート。

PSA前立腺箱ひげ診断
診断別PSA(箱ひげ図)

R Code (ggplot2)

library(ggplot2)

# ---- PSA by Diagnosis (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 = "Diagnosis", limits = c(0, 4)) +
  scale_y_continuous(name = "PSA (ng/mL)", limits = c(0, 50)) +
  labs(title = "PSA by Diagnosis (Boxplot)") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))