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.
a ggplto object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.