g_legend: Get legend of a ggplot

Description Usage Arguments Value Examples

Description

Get the legend of a ggplot to draw it externaly & draw it as grob.

This function extract the legend of a ggplot2 graph. Useful for plotting 2 plots sharing the same legend and showing it once.

Usage

1
2
3
galaxy.save.list(data.list)

g_legend(a.gplot)

Arguments

a.gplot

A ggplot

a.gplot

a ggplot2 plot

Value

Write 3 csv file on disk

a grobs containing only the plot legend

Examples

1
2

Mystilivia/SDjoygret documentation built on May 7, 2019, 5:17 p.m.