Description Usage Arguments Value
View source: R/extract_plot_legend.R
Extract a legend from a ggplot object Extract a legend from a ggplot object and save it if Save argument set to TRUE
1 2 3 4 5 6 7 8 |
gplot |
a ggplot2 object |
width |
a numeric value |
height |
a numeric value |
device |
a charchacter taking the form of pdf or png |
Save |
a boolean |
path_figure |
a directory or relative directory as charchacter |
the legend of a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.