Relative Content

Tag Archive for rggplot2equation

how to overlay an equation in ggplot

I am trying to make a plot with the equation y=mx+c overlaid on the top. Based on the summary statistics, the intercept is 0.8 and the slope is 2.21. I tried adding this and one from another study with a different colour but it is not populating. Am I doing something wrong?