Mathematical framework explains diverse plant stem forms

It is well known that as plants grow, their stems and shoots respond to outside signals like light and gravity. But if plants all have similar stimuli, why are there so many different plant shapes? Why does a weeping willow grow downwards while nearby poison ivy shoots upwards?