g_legend: Extracting Legend of a ggplot2 Object

View source: R/graphic_functions.R

g_legendR Documentation

Extracting Legend of a ggplot2 Object

Description

This function extracts legend from ggplot2 plots.

Usage

g_legend(a.gplot)

Arguments

a.gplot

A ggplot2 object.

Value

A ggplot2 legend.

Author(s)

Omer Kara

Examples

## Not run: 
g <- ggplot(...) ## Do not run.
g_legend() ## Do not run.

## End(Not run)


omerkara/okara documentation built on Nov. 21, 2023, 7:56 p.m.