| 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 gridgparobject. 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
gparobject and return a modifiedgparobject. By default, the value of this argument is the identity function. ext-
A character vector. See
grid.picturefor more information on what this extension selection parameter means, in addition to the valid values this argument takes.
Author(s)
Simon Potter