R ggplot2 !!!geom_smooth {{outline}} https://ggplot2.tidyverse.org/reference/geom_smooth.html ---- !!回帰直線 geom_smooth(method = "lm") * 95%信頼区間も表示 ** 表示しないようにするには、se = FALSE * オプション ** color = "red", linetype = "dashed", size = 0.5, fill = "pink" !!平滑化回帰直線 geom_smooth(method = "loess") !!何も指定しないと ! 1000に満たない場合は、自動で loess() ! それ以上の場合は、mgcv::gam()