added a plant-related random effect term to the function's input so I wouldn't have to duplicate a ton of code unnecessarily for the 2 random effect variants that are needed.