legends {ggplot2} | R Documentation |
Create and arrange legends for all scales.
legends(scales, scale_usage, horizontal = FALSE)
scales |
scales object |
scale_usage |
direction of scales, vertical by default |
horizontal |
This function gathers together all of the legends produced by
the scales that make up the plot and organises them into a
\frameGrob
.
If there are no legends to create, this function will return NULL
frameGrob, or NULL if no legends
Hadley Wickham <h.wickham@gmail.com>