View source: R/grid_arrange_shared_legend.r
This function is used to merge multiple ggplot2 object together and share same legend.
1 2 3 4 5 6 7 |
... |
ggplot2 objects |
ncol |
number of columns |
nrow |
number of rows |
position |
"bottom" or "right", location to place the legend |
title |
title of the graph |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.