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 Oct. 28, 2024, 7:24 a.m.