View source: R/e_plot_HELPERS.R
e_plot_extract_legend | R Documentation |
Extract ggplot legend as it's own plot grob object
e_plot_extract_legend(p = NULL)
p |
ggplot grob |
p_legend ggplot grob of only the legend
## Not run:
p_legend <- e_plot_extract_legend(p)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.