This code shows how to generate a cool 3D scatter/distributions plot for regression analysis: To make a nice plot of the residuals, simply replace data.y with residuals(ols) in the App.jl file: