grid.current.viewport {grid}R Documentation

Get the Default Grid Viewport

Description

Returns the viewport that Grid is going to draw into.

Usage

current.viewport(vp=NULL)

Arguments

vp A Grid viewport object.

Details

This function has two modes:

  1. If vp is not specified, this function returns the default Grid viewport; this is the viewport last set by grid.set.viewport.
  2. If a value is specified for vp, this function returns that value if it is a valid viewport. Otherwise it returns the default Grid viewport.

Value

A Grid viewport object.

Author(s)

Paul Murrell

See Also

viewport

Examples






[Package Contents]