add_defaults {ggplot} | R Documentation

## Add default scales.

### Description

Add default scales to a plot.

### Usage

    add_defaults(p = .PLOT, new)

### Arguments

`p` | plot object, if not specified will use current plot
`new` | character vector of needed scales to add, see `scales` for possible options

### Details

You shouldn't need to call this function yourself. If you want to add a scale to a plot, use `add_scale`.

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### Examples

[Package ggplot version 0.2.2 Index]