plotResiduals() - automatically handle NA and extend form = ~
Opened this issue · 1 comments
florianhartig commented
plotResiduals() should get an update. There are two main issues:
- function should be able to use variables from the model, instead of the global environment
- this should then also take care of NA issues from users, such as in #424
florianhartig commented
@melina-leite given the large number of people that have problems with this, I would see this as priority for the 0.4.8 release!
My ideal solution would be to copy the syntax (possibly also the code) from the lme4 plot.merMod command, where one can say
form = res ~ variable | group
where
- res allows to specify different residual definitions
- variable is the variable on x
- group allows to create several plots per group
Cases 1 and 3 could also be done later. About 3: lme4 uses the lattice framework for the group plots - I'm not sure if I like this visually, because it breaks with our other graphics, but I guess that a solution via par(mfrow = c()) for creating several panels will be much more fragile (in particular regarding this error if the plot window is not large enough).