(I know one answer to this question is to re-arrange my data into a tidy-er format and then use plotly express, but assuming that I have to stick with go.Scatter()…)
Is there a way I can add a regression trend line to the red points in this plot? Basically I want to see if a regression line is above or below the blue line.
I found this answer but it seems a little out of date: Adding best fit line (linear regression line) in a scatter plot . I guess more specifically, I don’t understand what I do with
layout['shapes']=shapes in the accepted answer.