added plotting functionality for univariate regressions