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

Picture-class

Class "Picture"


Description

A collection of paths, polylines, rectangles and other graphical content and features that together describe a picture.

Objects from the Class

Objects can be created by calls of the form new("Picture", ...).

Slots

content:

A list of objects of class "PictureContent" that are paths, groups rectangles and other related objects.

defs:

Object of class "PictureDefinitions" that contain all referenced content in the image. These are only used by the gridSVG package when "grobifying" an image.

summary:

Object of class "PictureSummary" that describes the scales applied to this picture.

Methods

[

signature(x = "Picture"): subset the content of a picture to produce a new picture (including a new, updated summary).

[[

signature(x = "Picture"): extract a single piece of a picture object, to produce a new picture (including a new, updated summary).

grobify

signature(object = "Picture"): convert a picture into a grid grob (for use as a one-off image).

This method contains two additional arguments:

gpFUN

This argument expects to take a function that modifies a gpar object. For its input, this function should take a gpar object, modify that object, and then return it. By default the value of this argument is the identity function.

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

See Also


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.