How to plot horizontal line inside a graph in R

linear_regression
r

#1

I am currently working on simple linear regression and I want to plot the Null hypothesis using R in a plot of dependent and independent variable which is a horizontal line at mean of dependent variable. Please help me to plot this.


#2

@hinduja1234, use the abline() function.