extract_ggplot_legend | R Documentation |
Extract the legend from a ggplot2 object
extract_ggplot_legend(x)
x |
A ggplot2 object |
The legend grob from that object
Other plot legend helpers:
plot_grid_one_legend()
,
remove_ggplot_legend()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.