get_legend: Extract legend from a plot

View source: R/utils.R

get_legendR Documentation

Extract legend from a plot

Description

Extract the legend grob from a plot object.

Usage

get_legend(plot)

Arguments

plot

A plot object.

Value

The legend grob.


thisplot documentation built on March 7, 2026, 5:07 p.m.