術式別手術時間(箱ひげ図)

術式別の手術時間分布を比較する箱ひげ図テンプレート。

手術時間術式箱ひげ比較
術式別手術時間(箱ひげ図)

R Code (ggplot2)

library(ggplot2)

# ---- Operative Time by Procedure (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 = "Procedure", limits = c(0, 5)) +
  scale_y_continuous(name = "Operative Time (min)", limits = c(0, 300)) +
  labs(title = "Operative Time by Procedure (Boxplot)") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))