Description Usage Arguments Examples
View source: R/ExtractLegend.R
This function pulls out the legend box from a ggplot2 object, which you can then arrange with other objects using e.g. patchwork.
1 | ExtractLegend(my.plot = NULL)
|
my.plot |
The plot from which to extract the legend. Defaults to NULL. |
1 | ExtractLegend(plot1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.