I am trying to create a qqline
plot but I'm having consistent issues getting the following error:
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
This is what I tried:
plot(allEffects(model1))
dotplot(ranef(model1, condVar = TRUE))
r_int <- ranef(model1)$ElkID$`(Intercept)`
qqnorm(r_int)
qqline(r_int)
Everything worked fine except for qqline(r_int)
, where I was greeted with the same error:
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet