空腹時血糖ヒストグラム

空腹時血糖ヒストグラムテンプレート。血糖値の度数分布を表示。

histogramヒストグラム血糖度数糖尿病
空腹時血糖ヒストグラム

R Code (ggplot2)

library(ggplot2)

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

ggplot(df, aes(x = x, y = y)) +
  geom_point(size = 2) +
  geom_line() +
  scale_x_continuous(name = "Glucose (mg/dL)", limits = c(60, 300)) +
  scale_y_continuous(name = "Frequency (度数)", limits = c(0, 40)) +
  labs(title = "Fasting Glucose Histogram") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))