Skip to content
Prev 15964 / 20628 Next

ggplot of Hurdle model

That book contains fully worked out ggplot2 code to sketch the two 
individual components of a hurdle model, and also the expected values of 
the actual hurdle model. Based on your str output below I see you have 
only factors and biomass. So..you can visualise the Bernoulli GLM, and 
you can also visualise the Gamma GLM. Just use geom_errorbar instead of 
geom_ribbon when plotting the results (because you only have factors). 
Being a PhD student means that you should be able to figure this out.

Note that 80 observations is rather small for the things that you are 
(probably) doing. I hope there are no random effects involved.....though 
given the fact that you use glmer it seems that you do.

Kind regards,

Alain