View source: R/extractGGLegend.R
g_legend | R Documentation |
Extract legend as separate gtable from ggplot object
g_legend(a.gplot)
a.gplot |
a ggplot object with a legend |
a gtable object of the legend
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.