View source: R/ggplot-extras.R
g_legend | R Documentation |
function developed by Hadley Wickham found in this (by Michael Kuhn) blog:http://blog.mckuhn.de/2013/04/2d-plot-with-histograms-for-each.html and was referencing: https://github.com/hadley/ggplot2/wiki/Share-a-legend-between-two-ggplot2-graphs
g_legend(a_ggplot)
a_ggplot |
a ggplot |
the legend
Hadley Wickham
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.