Skip to contents

Convenience helper around cowplot::get_legend().

Usage

extract_legend_grob(p)

Arguments

p

A ggplot object.

Value

A grob containing the legend, or NULL if the plot has no legend.