get-legend: get_legend

get_legendR Documentation

get_legend

Description

extract legend from a plot

Usage

get_legend(plot)

Arguments

plot

a gg or gtable object

Value

a 'gtable' object of the legend

Author(s)

Guangchuang Yu


ggfun documentation built on June 21, 2025, 9:07 a.m.