To add a linear regression line to a scatter plot, add stat_smooth() and tell it to use method = lm . This instructs ggplot to fit the data with the lm() ...
確定! 回上一頁