We're trying to use dotplot to create a caterpillarplot based on the random effect structure of a
all_bv_C <- lmer(RQ_EvT_A ~ SD_Lft_M_Cat4 + SD_Opl_M_Cat3 + OV_Gez_M_4 + (1|VSVnr), data=BV2, REML=TRUE)
random <- ranef(all_bv_C, condVar = TRUE)
dotplot(randoms, scales = list(x = list(relation = 'free')))
dotplot(randoms, scales = list(x = list(relation = 'free')), main="Title")
Error in if (main) nx : argument is not interpretable as logical
pv <- attr(x, "postVar")
You can not here without changing the code. Looking at the source code of the S3 method
You can not set the titles suing arguments. If you look in the function in some line it is written explicitly:
mtit <- if (main) nx
where nx is the names(x)( your ranef object).
So if you do somthing like :
names(randoms) <- "Title" dotplot(randoms)
the plot title will change. But this is a hack. Better here to change the code of the function and customize it as you like.