get_gg_legend: get_gg_legend

Description Usage Arguments Value Examples

View source: R/get_gg_legend.R

Description

get_gg_legend returns the legend of a ggplot object as a grob

Usage

1
get_gg_legend(ggplot_obj)

Arguments

ggplot_obj

a ggplot object

Value

the legend as a grob

Examples

1
plot_legend <- get_gg_legend(ggplot_obj)

richysix/miscr documentation built on April 30, 2020, 12:14 a.m.