Adding a trendline or line of best fit

Note that AlgebraOfGraphics at the moment has only linear (linear regression) and smooth (LOESS regression, not sure what it corresponds to in Excel terminology), and lacks the other “trendline options”. On the flip side, the design is such that extra analyses can be added easily.

I suspect that instead of hardcoding a few (IMO arbitrary) choices, there should probably be a way for the user to pass a model of the data. Then AlgebraOfGraphics would do a least squared error fit and plot the result.