Relative Content

Tag Archive for rggplot2regression

Regression Line help in ggplot2

I am trying to add a regression line into my ggplot. Below is the code I am using to make the plot. I am wanting to plot the regression line in the first plot (L5andDownTempAvgPlot) but keep running into the following error. I am also wondering if there is a way to a line of best fit of the two lines in the ggplot (the one from DailyAvgL5 and DailyDownGaugeAvg). I’m not sure if this is possible, but if so that’s ultimately what I would like to be able to do.