Add new comment

Here’s an idea. Create two sliders, let’s say named m and b. Now, in the scatterplot, using the Ruler menu, choose Plotted Function. Click in the function area at the top of the plot and enter m*x+b. (Or, if you like, you can use the name of the attribute on the x axis; e.g. m*Height+b). When you press Apply you’ll see your line (assuming your axis bounds permit). The two sliders will control the line and you can use them in formulas elsewhere.