Description Usage Arguments Value Examples
Get the legend of a ggplot to draw it externaly & draw it as grob.
This function extract the legend of a ggplot2 graph. Useful for plotting 2 plots sharing the same legend and showing it once.
1 2 3 | galaxy.save.list(data.list)
g_legend(a.gplot)
|
a.gplot |
A ggplot |
a.gplot |
a ggplot2 plot |
Write 3 csv file on disk
a grobs containing only the plot legend
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.