viewport_default {ggplot2} | R Documentation

## Default viewports

### Description

Set up named viewports that the other components use.

### Usage

    viewport_default(plot, guides, scales, coordinates)

### Arguments

`plot` | plot object
`guides` | guides grobs
`scales` | scales grobs
`coordinates` |

### Details

This function sets up a `\vpTree` in which all of the components of a plot will be placed. This allows for a clean separation between the generation of plot objects, and their placement, and means none of the components have to know anything about the others.

This function is responsible for the overall layout of the plot, ie where the panels, labels and axes go. In future, I will add more viewport layout functions so that you can have the same layout as, e.g., the trellis default.

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### Examples

[Package ggplot2 version 0.5.5 Index]