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