Learn R Programming

ggfun (version 0.1.8)

get_legend: get_legend

Description

extract legend from a plot

Usage

get_legend(plot)

Value

a 'gtable' object of the legend

Arguments

plot

a gg or gtable object

Author

Guangchuang Yu