Skip to contents

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()