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

symbolize

Convert a Picture into a Grid Grob


Description

Converts an entire "Picture" object, or a path element thereof, into an appropriate grid grob. Not usually called directly by the user; usually called by grid.picture.

Usage

symbolize(object, x = unit(0.5, "npc"), y = unit(0.5, "npc"),
          size = unit(1, "npc"), units = "npc", ...)

Arguments

object

A "Picture" object.

x

A numeric vector or unit object specifying x-values.

y

A numeric vector or unit object specifying y-values.

size

A numeric vector or unit object specifying symbol size.

units

The default units to use if x, y, or size are specified as simple numeric values.

...

Arguments passed on to the relevant grid grob constructor function.

Value

A grid gTree (when given a whole "Picture") or a "symbolFill" or "symbolStroke" object (when given a single picture path).

Author(s)

Paul Murrell

See Also


grImport

Importing Vector Graphics

v0.9-3
GPL (>= 2)
Authors
Paul Murrell [aut, cre], Richard Walton [aut], Simon Potter [ctb]
Initial release

We don't support your browser anymore

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