get_legend | R Documentation |
Extract a legend https://stackoverflow.com/questions/43366616/ggplot2-legend-only-in-a-plot Alternate unused approach From https://github.com/tidyverse/ggplot2/wiki/Share-a-legend-between-two-ggplot2-graphs
get_legend(a.gplot)
a.gplot |
a ggplot |
Returns a legend
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.