How to Fit a Trendline in a Scatter Plot in Plotly(default and your own line)

  1. Plot the trendline using Plotly’s function
  2. Creating our own trendline

1. Plot the trendline using Plotly’s function

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Renee LIN

Renee LIN

516 Followers

Passionate about web dev and data analysis. Huge FFXIV fan.