Learn R Programming

gridSVG (version 1.5-0)

viewportCreate: Recreate a viewport from imported coordinate information.

Description

Creates a viewport object that is positioned in the same location as a previously exported viewport.

The purpose of this function is so that we can recreate content for later manipulation.

Usage

viewportCreate(vpname, newname = NULL, vpPath.sep = getSVGoption("vpPath.sep"))

Arguments

vpname
The name of the viewport to be recreated, as stored in coordinate information. This is most likely a viewport path.
newname
The name that is going to be assigned to the viewport as it is re-created. If this parameter is NULL, then the name is taken to be the last viewport in listed in vpname (because it is usually a viewport path).
vpPath.sep
The viewport path separator that was used for vpname.

Value

A viewport object.

Details

In order to use this function, coordinate information must be available to gridSVG. This means that viewport information must be imported using gridSVGCoords.

The ROOT viewport must also have coordinate information imported because the created viewport is positioned relative to this.