I'm not a botanist, but I understood that trees and herbs are genetically close when I visited Madeira and saw the Dandelion tree [1] - a tree which leaves and flowers are regular dandelions.
[1] https://en.wikipedia.org/wiki/Sonchus_fruticosus
PS. Ok, it's technically a shrub.