I'd like to be able to generate lineup versions of some of the standard residual plots (residuals vs fitted, QQ-plot, scale-location, residuals vs leverage) in a single step. As far as I can tell, there aren't currently any convenience functions for this.
The current process for generating a residuals vs fitted-plot involves quite a few steps:
I'd like to be able to generate lineup versions of some of the standard residual plots (residuals vs fitted, QQ-plot, scale-location, residuals vs leverage) in a single step. As far as I can tell, there aren't currently any convenience functions for this.
The current process for generating a residuals vs fitted-plot involves quite a few steps:
What I'm looking for are convenience functions similar to those that already exist for regular residual plots:
Example
ggfortify::autoplot(x)
output:A rough sketch of what these could look like are:
Getting lineup versions of the plots from
plot.lm
andggfortify::autoplot
is then straightforward:Example
lineupplot(x, type = 3)
output:Does this make sense? If so, I'd be happy to work a bit more on the above code and then create a PR.