Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

PicturePattern-class

Class "PicturePattern"


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


grImport2

Importing 'SVG' Graphics

v0.2-0
GPL (>= 2)
Authors
Simon Potter [aut], Paul Murrell [aut, cre] (<https://orcid.org/0000-0002-3224-8858>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.