View source: R/grid_arrange_shared_legend.R
grid_arrange_shared_legend | R Documentation |
ggplot2
Create multiple ggplot2
plots with a shared legend
grid_arrange_shared_legend(...)
pass |
the plots pass the dataframe |
This is borrowed directly from https://rpubs.com/sjackman/grid_arrange_shared_legend
It requires ggplot2
, grid
, and gridExtra
ggplot2 with a shared legend
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.