e_plot_extract_legend: Extract ggplot legend as it's own plot grob object

View source: R/e_plot_HELPERS.R

e_plot_extract_legendR Documentation

Extract ggplot legend as it's own plot grob object

Description

Extract ggplot legend as it's own plot grob object

Usage

e_plot_extract_legend(p = NULL)

Arguments

p

ggplot grob

Value

p_legend ggplot grob of only the legend

Examples

## Not run: 
p_legend <- e_plot_extract_legend(p)

## End(Not run)

erikerhardt/erikmisc documentation built on April 17, 2025, 10:48 a.m.