legends {ggplot} | R Documentation

## Legends

### Description

Create and arrange legends for all scales.

### Usage

    legends(scales, vertical = TRUE)

### Arguments

`scales` | scales object
`vertical` | 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 ggplot version 0.2.2 Index]