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


YuLab-SMU/ggfun documentation built on April 14, 2025, 1:54 p.m.