Sebastian Sauer shows a few techniques for visualizing linear models with two predictors:
Linear models are a standard way of predicting or explaining some data. Visualizing data is not only of didactical value but provides heuristical value too, as demonstrated by Anscombe’s Quartet.
Visualizing linear models in 2D is straightforward, but visualizing linear models with more than one predictor is much less so. The aim of this post is to demonstrate some ways do visualize linear models with more than one predictor, using popular R packages. We will focus on 3D examples, that is, two predictors.
I have a strong bias against 3D visuals because they tend to be so difficult to see clearly. There are times when they’re necessary, though.