PictureGroup-class {grImport2} | R Documentation |
Class "PictureGroup"
Description
A grouped collection of picture pieces.
Slots
content
:-
Object of class
"list"
that is a list of objects of class"PictureContent"
. clip
:-
Object of class
"ANY"
. EitherNULL
or an object of class"PictureClipPath"
. filterRef
:-
Object of class
"ANY"
. A character reference to an object that will apply a filter effect to this group. Not intended to be used directly (so can beNULL
. maskRef
:-
Object of class
"ANY"
. A character reference to an object that will mask this group. Not intended to be used directly (so can beNULL
. gp
:-
Object of class
"gpar"
. A gridgpar
object to apply to the group.
Extends
Class "PictureContent"
, directly.
Methods
- [
-
signature(x = "PictureGroup")
: subset the content of the group to produce a new picture. - [[
-
signature(x = "PictureGroup")
: extract a single piece of a picture group. Each piece will be an object of class"PictureContent"
. - applyTransform
-
signature(object = "PictureGroup", tm = "matrix")
: transforms the locations described by contents of the group object by a 3x3 transformation matrix and returns a"PictureGroup"
object whose children have had locations transformed by the matrix. - grobify
-
signature(object = "PictureGroup")
: convert to a grid grob (for use as a one-off image) for drawing.This method is typically not called directly but can take three additional arguments.
defs
-
This argument takes an object of class
"PictureDefinitions"
. This object allows us to make use of referenced content features in the gridSVG package. gpFUN
-
This arugment takes a function that modifies a
gpar
object. The function should take a single argument that is agpar
object, modify thatgpar
object, and then return it. By default this argument is assigned the value of the identity function. ext
-
A character vector. This argument can partially match to one of
off
,clipbbox
, orgridSVG
. Whenoff
, no clipping is applied to the group. Whenclipbbox
, the contents of the group will be clipped to the bounding box of the clipping definition. WhengridSVG
, the contents of the group will be clipped to the non-zero region defined by the clipping definition, in addition to using gridSVG features (i.e. gradients, filters), when required.bbox
is restricted to rectangular clipping regions, whilegridSVG
has no such restriction and can clip to any arbitrary region.
Author(s)
Simon Potter