3 Different ways to add regression line in ggplot2

Add regression line to scatterplot using geom_line()

In this post, we will learn how to add simple regression line in three different ways to a scatter plot made with ggplot2 in R. This is something I have to google almost every time, so here is the post recording the options to add linear regression line. We will use palmer penguin data to… Continue reading 3 Different ways to add regression line in ggplot2