Calculate R squared
Ensure that non-linear data have r-squared less than 0.5
Treat data as singular even if it isn't
Change the R2 value threshold of non-linear trends to 0.36
Merge pull request #95767 from petercollingridge/fitline

More changes to plotting a line of best fit