View source: R/graphic_functions.R
g_legend | R Documentation |
This function extracts legend from ggplot2 plots.
g_legend(a.gplot)
a.gplot |
A ggplot2 object. |
A ggplot2 legend.
## Not run:
g <- ggplot(...) ## Do not run.
g_legend() ## Do not run.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.