Fitting trend lines to scatterplots