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