legends {ggplot2} | R Documentation

## Legends

### Description

Create and arrange legends for all scales.

### Usage

    legends(scales, horizontal = FALSE)

### Arguments

`scales` | scales object
`horizontal` | direction of scales, vertical by default

### 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.5.5 Index]