回帰直線付き散布図
回帰直線付き散布図テンプレート。二変量の相関分析に使用。

R Code (ggplot2)
library(ggplot2) # ---- Scatter with 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 = "Predictor (X)", limits = c(0, 100)) + scale_y_continuous(name = "Outcome (Y)", limits = c(0, 100)) + labs(title = "Scatter with Regression") + theme_bw(base_size = 14) + theme(plot.title = element_text(face = "bold", hjust = 0.5))







