get_legend: Extract the legend from a ggplot

Description Usage Arguments

View source: R/sider_barplot.R

Description

This function extracts the legend out of a ggplot object. It is used to separate the legend from the sider_barplot in the zheatmap funciton. Should only be called internally.

Usage

1
get_legend(a.gplot)

Arguments

a.gplot

a ggplto object


zhuchcn/zheatmap documentation built on July 18, 2019, 3:14 p.m.