R: Symbol functions/data to be passed as symb argument to...
ms.polygram
R Documentation
Symbol functions/data to be passed as symb argument to
my.symbols
Description
These functions/data matricies are examples of what can be passed as
the symb argument in the my.symbols function. They are
provided both to be used for some common symbols and as examples of
what can be passed as the symb argument.
The number of sides for polygons and polygrams, the number of
petals(lines) for sunflowers.
r
The radius of the enclosing circle for polygons and polygrams
(1 means that it will pretty much fill the bounding square). For
sunflowers this is the radius (relative to the inches square) of the
inner circle. For arrows this controls the length of the arrow, a
value of 2 means the length of the arrow will be the same as inches
(but it may then stick out of the box if adj != 1).
adj
For polygons, polygrams, and sunflowers this is the angle
in radians that the first corner/point will be. The default puts a
corner/point straight up, this can be used to rotate the symbols. For
arrows, this determines the positioning of the arrow, a value of 0
means the arrow will start at the x,y point and point away from it,
0.5 means the arrow will be centered at x,y and 1 means that the arrow
will end (point at) x,y.
fg, bg
Colors for the filled polygons. fg is the color
of the line around the polygon and bg is the fill color, see
polygon.
angle
The angle in radians that the arrow will point.
length
The length of the arrow head (see
arrows).
img
A 3 dimensional array representing an image such as
produced by the png or EBImage packages.
transpose
Should the image be tranposed, use TRUE for images
imported using package png and FALSE for images imported using
EBImage.
features
A list of data representing the features of
the faces, each element represents 1 face and the values need to be
scaled between 0 and 1, see faces for details on which
elements match which features.
...
additional parameters that will be passed to plotting
functions or be ignored.
Details
These functions/matricies can be passed as the symb argument to
the my.symbols function. The represent examples that can be
used to create your own symbols or may be used directly.
Value
These functions either return a 2 column matrix of points to be passed
to lines or NULL.