symbolize: Convert a Picture into a Grid Grob

symbolizeR Documentation

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

grid.picture and symbolize


grImport documentation built on March 31, 2023, 6:57 p.m.