We will see how to perform a linear regression using the lm function and to plot these straigth regression lines in base R and ggplot2.