get_legend: Get legend

Description Usage Arguments Value Examples

View source: R/get_legend.R

Description

Extracts legend grob from a ggplot object

Usage

1
get_legend(gg_plot)

Arguments

gg_plot

ggplot object from which legend will be extracted

Value

object containing legend

Examples

1
2
data(examples_data)
get_legend(hm)

michbur/dendrolenda documentation built on Aug. 10, 2020, 4:55 a.m.