BMI-合併症散布図

BMI-合併症散布図テンプレート。術前BMIと術後合併症の関係。

scatter散布図BMI合併症外科
BMI-合併症散布図

R Code (ggplot2)

library(ggplot2)

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

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "BMI (kg/m²)", limits = c(15, 50)) +
  scale_y_continuous(name = "Complication Rate (%)", limits = c(0, 30)) +
  labs(title = "BMI vs Complication Scatter") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))