get a ggplot legend object

getLegend(a.gplot)

Arguments

a.gplot

ggplot object

Value

a legend grob

Author

Nick McKay