How to plot horizontal line inside a graph in R



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.


@hinduja1234, use the abline() function.