I am trying to create worm plots for a variety of linear regression models in R. The code is
wp(modelL, bg="deeppink3")
.
Out of the nine worm plots I am attempting to create, it only works for two. The others bring the error message "Error in as.environment(DaTa) : invalid object for 'as.environment'".
I have already removed, reinstalled, and updated gamlss. I am not sure what else to do. Any help would be much appreciated.