View source: R/extract_legend.R
xtract_legend | R Documentation |
xtract_legend
xtract_legend(my_ggp)
my_ggp |
a ggplot object to which you want to get the legend |
a legend object that can be added to a ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.