get_legend | R Documentation |
extract legend from a plot
get_legend(plot)
plot |
a gg or gtable object |
a 'gtable' object of the legend
Guangchuang Yu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.