Common anchor arguments

Anchor

internal_anchor(addTo, translate = c(x = 0, y = 0, z = 0), rotate = c(x
  = 0, y = 0, z = 0), scale = c(x = 1, y = 1, z = 1))

anchor(rdog = NULL, id = NULL, addTo = NULL, translate = c(x = 0, y
  = 0, z = 0), rotate = c(x = 0, y = 0, z = 0), scale = c(x = 1, y = 1,
  z = 1))

Arguments

addTo

Id of the parent object. If an rdog object is piped and addTo is set to NULL, the default parent will be the illustration itself.

translate

Position relative to the origin. Origin point is defined based on addTo parameter. A vector with named x, y, z elements.

rotate

Set rotation. Unit is radians. Use with pi constant. A vector with named x, y, z elements.

scale

Scale dimensons. Can be an unnamed integer or a vector with named x, y ,z elements

rdog

rdog object to add the shape to. Can be a character if called from a code block in shiny

id

id of the anchor. If NULL, a random id will be assigned