PicturePattern-class: Class '"PicturePattern"'

Description Slots Extends Methods Author(s)

Description

A description of a pattern to be referenced (and used) by graphical content.

Slots

x:

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

y:

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

width:

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

height:

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

angle:

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

definition:

Object of class "list". A list of "PictureContent" objects that define the content of the pattern "tile".

Extends

Class PictureContent, directly.

Methods

applyTransform

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

grobify

signature(object = "PicturePattern"): convert the pattern description into a gridSVG pattern object. Useful only in conjunction with the gridSVG package. The pattern object will store the definition of the pattern (almost certainly a raster of some sort) as a grob too.

While not intended to be used directly, this method contains a single optional argument. This argument is 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


sjp/grImport2 documentation built on May 30, 2019, 12:06 a.m.