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

PictureChar-class

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


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.