Linear Regression in scatterplot

Hi,
Are there any examples for creating Linear Regression lines in a scatter plot?
Or some pointers would be nice.
Tom

duplicate of Fitting function with plotly.js