guide_legends_box {ggplot2} | R Documentation |
Create and arrange legends for all scales.
guide_legends_box(scales, layers, default_mapping, horizontal = FALSE, theme)
scales |
scales object |
layers |
direction of scales, vertical by default |
default_mapping |
|
horizontal |
|
theme |
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>