guide_legends_box {ggplot2}R Documentation

Legends

Description

Create and arrange legends for all scales.

Usage

guide_legends_box(scales, layers, default_mapping, horizontal = FALSE, theme)

Arguments

scales scales object
layers direction of scales, vertical by default
default_mapping
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.8.2 Index]