prettyplot {ggplot} | R Documentation

## Pretty plot

### Description

Build a plot with all the usual bits and pieces.

### Usage

    prettyplot(plot, title, xlabel, ylabel, legend=NULL)

### Arguments

`plot` | plot
`title` | title (character vector)
`xlabel` | x axis label (character vector)
`ylabel` | y axis label (character vector)
`legend` | legend grobs (list of grobs)

### Details

As well as the plotting area, a plot need:

- main title
- x and y axis labels
- space for legends (currently on the right hand side)

  This function sets up the appropriate viewports and packs the various components in. The viewport is set up so that each component will only take up the amount of space that it requires.

  ### Author(s)

  Hadley Wickham <h.wickham@gmail.com>

  ### Examples

  [Package ggplot version 0.2.2 Index]