Learn R Programming

grid (version 3.3.1)

vpPath: Concatenate Viewport Names

Description

This function can be used to generate a viewport path for use in downViewport or seekViewport.

A viewport path is a list of nested viewport names.

Usage

vpPath(...)

Arguments

...
Character values which are viewport names.

Value

A vpPath object.

Details

Viewport names must only be unique amongst viewports which share the same parent in the viewport tree.

This function can be used to generate a specification for a viewport that includes the viewport's parent's name (and the name of its parent and so on).

For interactive use, it is possible to directly specify a path, but it is strongly recommended that this function is used otherwise in case the path separator is changed in future versions of grid.

See Also

viewport, pushViewport, popViewport, downViewport, seekViewport, upViewport

Examples

Run this code
vpPath("vp1", "vp2")

Run the code above in your browser using DataLab