Images from the rural world abound in Shakespeare's verse and when it comes to horticulture there is an impression he speaks from direct knowledge.
For example, weeds furnish evocative metaphors, yet the Bard really seems to know what he is talking about.
Perhaps in between composing sonnets and plays Shakespeare wandered out into the garden to help Anne with the weeding?*
Virtue? a fig! 'tis in ourselves that we are thus, or thus. Or bodies are our gardens; to the which, our wills are gardeners; so that if we will plant nettles, or sow lettuces; set hyssop, and weed up thyme; supply it with one gender of herbs, or distract it with many; either to have it sterile with idleness or manured with industry; why the power and corrigible authority of this lies in our wills.