View source: R/extract-legend.R
extract_legend | R Documentation |
Extract legends form ggplot2 objects.
extract_legend(p)
p |
ggplot2 object (plot) containing legends (guides). |
plottable legend grob.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.