extract_ggplot_legend: Extract the legend from a ggplot2 object

View source: R/plot_helpers.R

extract_ggplot_legendR Documentation

Extract the legend from a ggplot2 object

Description

Extract the legend from a ggplot2 object

Usage

extract_ggplot_legend(x)

Arguments

x

A ggplot2 object

Value

The legend grob from that object

See Also

Other plot legend helpers: plot_grid_one_legend(), remove_ggplot_legend()


billdenney/bsd.report documentation built on Jan. 16, 2024, 12:54 a.m.