add_scale {ggplot} | R Documentation

## Add scale

### Description

Add (one) scale to the plot

### Usage

    add_scale(p = .PLOT, scale)

### Arguments

`p` | plot object, if not specified will use current plot
`scale` | scale to add, see `scales` for possible options

### Details

You shouldn't need to call this function yourself as all scale objects provide a convenient method to do so automatically. These are the functions that start with sc.

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### Examples

    p <- ggplot(movies, aesthetics=list(x=length, y=rating))
    add_scale(ggpoint(p), position_continuous('x', range=c(80,100)))

[Package ggplot version 0.4.2 Index]