HbA1c-血糖相関

HbA1c-平均血糖相関テンプレート。HbA1cと血糖値の対応関係をプロット。

HbA1c血糖相関
HbA1c-血糖相関

R Code (ggplot2)

library(ggplot2)

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

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "HbA1c (%)", limits = c(4, 12)) +
  scale_y_continuous(name = "Estimated average glucose (mg/dL)", limits = c(50, 350)) +
  labs(title = "HbA1c-Glucose Correlation") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))