ExtractLegend: Extract the legend from a ggplot2 object.

Description Usage Arguments Examples

View source: R/ExtractLegend.R

Description

This function pulls out the legend box from a ggplot2 object, which you can then arrange with other objects using e.g. patchwork.

Usage

1
ExtractLegend(my.plot = NULL)

Arguments

my.plot

The plot from which to extract the legend. Defaults to NULL.

Examples

1

jr-leary7/jackknife documentation built on April 19, 2021, 2:18 a.m.