In R, the ______ function can be used to create a scatter plot with a regression line.

  • scatterplot()
  • abline()
  • lm()
  • plot()
The lm() function in R can be used to fit a linear regression model, and when combined with the plot() function, it can create a scatter plot with a regression line. The lm() function estimates the regression line based on the relationship between the two variables provided as arguments.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *