| PicturePath-class {grImport2} | R Documentation |
Class "PicturePath"
Description
A description of a path.
Slots
d:-
Object of class
"PathData". A description of how the path draws and where it draws. rule:-
Object of class
"character". A single element vector specifying the fill rule of the path. gp:-
Object of class
"gpar". A gridgparobject that describes graphical parameters applied to the path. bbox:-
Object of class
"numeric". The bounding box of the path. Represented as[xmin, xmax, ymin, ymax]. Used for features such as clipping.
Extends
Class linkS4class{PictureContent}, directly.
Methods
- applyTransform
-
signature(object = "PicturePath", tm = "matrix"): transforms each location described by the path's data by a 3x3 transformation matrix and returns a new"PicturePath"object with the newly transformed locations. - grobify
-
signature(object = "PicturePath"): converts the path description into a grid grob that represents the path.Although not expected to be called directly, this method contains three arguments.
defs-
An object of class
"PictureDefinitions". This object holds definitions of advanced graphical content, primarily for use with the gridSVG package. gpFUN-
This argument expects to take a function that modifies a
gparobject. This function should take agparobject and return a modifiedgparobject. By default 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