guide_legends_box {ggplot2}R Documentation

Legends

Description

Create and arrange legends for all scales.

Usage

guide_legends_box(scales, scale_usage, horizontal = FALSE, theme)

Arguments

scales scales object
scale_usage direction of scales, vertical by default
horizontal
theme

Details

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

Value

frameGrob, or NULL if no legends

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package ggplot2 version 0.7 Index]