PictureChar-class: Class "PictureChar"

PictureChar-classR Documentation

Class "PictureChar"

Description

A description of a polygon path that describes the outline of a character (and might be part of a larger picture).

Slots

x:

Object of class "numeric"

y:

Object of class "numeric"

rgb:

Object of class "character" that specifies the fill colour for the polygon.

lwd:

Object of class "numeric" that specifies the line width of the polygon (only used if the character outline is stroked).

char:

Object of class "character" that specifies the character that this path represents.

Extends

Class "PictureOp", directly.

Methods

grobify

signature(object = "PictureChar"): convert to a grid grob (for one-off drawing). Use argument fillText to fill the text rather than just stroke the outline. In that case, the first path for this character is filled in the appropriate colour and all subsequent paths are filled using a colour controlled by the bgText argument (default is white).

symbolize

signature(object = "PictureChar"): convert to a grid grob (for drawing as a data symbol). Currently draws nothing.

drawPath

signature(object = "PictureChar"): draws a traced character path as part of the current plot.

Author(s)

Paul Murrell

See Also

Picture-class, PictureStroke-class, and grid.picture, grid.symbols.


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