Function to get legend information from ggplot
getLegendList(plistextra)
plistextra
output from ggplot_build(p)
list containing information for each legend