setup_viewports {ggplot} | R Documentation

## Setup viewports

### Description

Setup matrix of viewports for a layout with given parameters

### Usage

    setup_viewports(type, rows=nrow(data), cols=ncol(data), data, offset=c(0,0), range)

### Arguments

`type` | viewport type
`rows` | number of rows
`cols` | number of columns
`data` | optional data to compute rows and columns from
`offset` | offset from top and left
`range` | list containing x and y ranges

### Details

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### Examples

[Package ggplot version 0.2.2 Index]