PictureRect-class {grImport2}R Documentation

Class "PictureRect"

Description

A description of a rectangle.

Slots

x:

Object of class "numeric". A vector of length one representing the x-location of the top-left corner of the rectangle.

y:

Object of class "numeric". A vector of length one representing the y-location of the top-left corner of the rectangle.

width:

Object of class "numeric". A vector of length one representing the width of the rectangle.

height:

Object of class "numeric". A vector of length one representing the height of the rectangle.

angle:

Object of class "numeric". A vector of length one representing the angle applied to the image. Corresponds to grid's viewport angles.

gp:

Object of class "gpar". A grid gpar object.

bbox:

Object of class "numeric". Represented as [xmin, xmax, ymin, ymax]. The bounding box of the rectangle. Used for features such as clipping.

Extends

Class PictureContent, directly.

Methods

applyTransform

signature(object = "PictureRect", tm = "matrix"): transforms the locations described by the rectangle object by a 3x3 transformation matrix and returns a "PictureRect" object with the transformed locations.

grobify

signature(object = "PictureRect"): converts the object into a grid rectangle grob.

While not intended to be used directly, this method contains three arguments:

defs

An object of class "PictureDefinitions" that contains definitions of graphical content, primarily for use with the gridSVG package.

gpFUN

This argument takes a function that should expect to take a single gpar object and return a modified gpar object. By default, the value of this argument is the identity function.

ext

A character vector. See grid.picture for more information on what this extension selection parameter means, in addition to the valid values this argument takes.

Author(s)

Simon Potter

See Also

PicturePath.


[Package grImport2 version 0.3-3 Index]