HbA1c-FPG散布回帰

HbA1c-FPG散布回帰テンプレート。空腹時血糖とHbA1cの回帰分析。

scatterregressionHbA1cFPG糖尿病
HbA1c-FPG散布回帰

R Code (ggplot2)

library(ggplot2)

# ---- HbA1c vs FPG 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 = "FPG (mg/dL)", limits = c(60, 300)) +
  scale_y_continuous(name = "HbA1c (%)", limits = c(4, 14)) +
  labs(title = "HbA1c vs FPG Scatter Regression") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))