在院日数-合併症散布回帰

在院日数-合併症散布回帰テンプレート。合併症数と在院日数の回帰分析。

scatterregression在院日数合併症外科
在院日数-合併症散布回帰

R Code (ggplot2)

library(ggplot2)

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

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Complications (n)", limits = c(0, 5)) +
  scale_y_continuous(name = "Length of Stay (days)", limits = c(0, 30)) +
  labs(title = "LOS vs Complication Scatter Regression") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))