GetLegend | R Documentation |
Function to extract the legend from a ggplot for manipulation in a publication plot. The code was obtained from a forum referenced below.
GetLegend(myggplot)
myggplot |
ggplot plot object |
Legend object as a separate plot object.
Richard T Gray, Rgray@kirby.unsw.edu.au
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.