Learn R Programming

grImport (version 0.9-1.1)

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).

See Also

grid.picture and symbolize