legends {ggplot2}R Documentation

Legends

Description

Create and arrange legends for all scales.

Usage

legends(scales, scale_usage, horizontal = FALSE)

Arguments

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

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>

Examples






[Package ggplot2 version 0.6 Index]