mod_rotate | R Documentation |
A rotation modification rotates a shape around a reference point. Rotations are not valid for refline shapes.
mod_rotate( pj, ref = "c", x = NA, y = NA, a = NA, au = "r", shape = ".", name = "." )
pj |
an object of class |
ref |
|
x |
|
y |
|
a |
|
au |
|
shape |
character scalar indicating the type of shape to which the mod will be applied. |
name |
character scalar name to give to the specified mod. The special
value |
pj
with the rotation modification applied to the specified
shape.
'c'
indicates center point of a shape's bounding rectangle.
'o'
indicates the origin (0, 0).
'bl'
indicates the bottom-left corner of a shape's bounding
rectangle.
'br'
indicates the bottom-right corner of a shape's bounding
rectangle.
'tl'
indicates the top-left corner of a shape's bounding
rectangle.
'tr'
indicates the top-right corner of a shape's bounding
rectangle.
'lm'
indicates the mid-point of the left edge of a shape's
bounding rectangle.
'rm'
indicates the mid-point of the right edge of a shape's
bounding rectangle.
'bm'
indicates the mid-point of the bottom edge of a shape's
bounding rectangle.
'tm'
indicates the mid-point of the top edge of a shape's
bounding rectangle.
The argument set {ref, x, y, a, au, xu,
yu}
is recycled with the number of subshapes defined for a given shape.
For point, area, and ribbon shapes, all arguments in the set must be
scalar. For segment shapes, arguments in the set must be recyclable with
the number of segments defined by that shape. For shapes that define
polygons, arguments in the set must be recyclable with the number of
polygons defined by the shape.
Other add_mod:
mod_dilate()
,
mod_reflect()
,
mod_translate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.