mod_translate | R Documentation |
A translation modification moves a shape in the x and/or y directions.
mod_translate(pj, dx, dy, shape = ".", name = ".")
pj |
an object of class |
dx |
numeric vector indicating the distances for horizontal translation. |
dy |
numeric vector indicating the distances for vertical translation. |
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 translation modification applied to the specified
shape.
The argument set {x, y, 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_rotate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.