get_legend: Extract ggplot legend

View source: R/misc.R

get_legendR Documentation

Extract ggplot legend

Description

This function extracts the ggplot legend to plot separately.

Usage

get_legend(ggplot_object)

Arguments

ggplot_object

A ggplot object.

Examples

get_legend(my_ggplot)

Mushriq/mixmap documentation built on Jan. 28, 2024, 7:22 p.m.