g_legend: Extract ggplot legend

View source: R/extractGGLegend.R

g_legendR Documentation

Extract ggplot legend

Description

Extract legend as separate gtable from ggplot object

Usage

g_legend(a.gplot)

Arguments

a.gplot

a ggplot object with a legend

Value

a gtable object of the legend


weshorton/wrh.rUtils documentation built on Feb. 6, 2025, 5:30 a.m.