g_legend: Extract legend from ggplot

Description Usage Arguments

View source: R/functions.R

Description

This function takes a ggplot2 object and extracts the legend as a grob.

Usage

1
g_legend(theplot)

Arguments

theplot

A ggplot2 object.


wpmarble/wpmarble documentation built on Dec. 5, 2019, 1:51 a.m.