get_gg_legend: Get the Legend for ggplot

Description Usage Arguments Value Author(s)

Description

Retrieve the legend of a ggplot so that it can be used as a plot itself. This is useful in situations where you are arrange multiple ggplots and want to share a common legend.

Usage

1
get_gg_legend(in.ggplot)

Arguments

in.ggplot

Input ggplot with legend

Value

ggplot legend

Author(s)

http://www.sthda.com/english/wiki/ggplot2-easy-way-to-mix-multiple-graphs-on-the-same-page-r-software-and-data-visualization


tinyheero/tinyutils documentation built on May 31, 2019, 3:36 p.m.