PTA-年齢散布回帰

PTA-年齢散布回帰テンプレート。加齢と聴力の回帰分析。

scatterregressionPTA年齢耳鼻
PTA-年齢散布回帰

R Code (ggplot2)

library(ggplot2)

# ---- PTA vs Age 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 = "Age (years)", limits = c(20, 90)) +
  scale_y_continuous(name = "PTA (dB HL)", limits = c(0, 80)) +
  labs(title = "PTA vs Age Scatter Regression") +
  theme_bw(base_size = 14) +
  theme(plot.title = element_text(face = "bold", hjust = 0.5))