A new generalized linear model (GLM) framework for analysing categorical data; application to plant structure and development.