Move an object
Arguments
- object
object
- x
nudge right and left
- y
nudge up and down
- ...
<
dynamic-dots
> properties passed to style
Examples
ob_circle() |> nudge(x = 2)
#> <ggdiagram::ob_circle>
#> @ center: <ggdiagram::ob_point>
#> @ x: num 2
#> @ y: num 0
#> @ radius: num 1
#> Other props: label, alpha, color, fill, linewidth, linetype,
#> n, area, bounding_box, circumference, diameter,
#> length, polygon, style, tibble, geom, arc, angle_at,
#> normal_at, tangent_at, place, point_at, aesthetics
# Alternative to nudge:
ob_circle() + ob_point(2, 0)
#> <ggdiagram::ob_circle>
#> @ center: <ggdiagram::ob_point>
#> @ x: num 2
#> @ y: num 0
#> @ radius: num 1
#> Other props: label, alpha, color, fill, linewidth, linetype,
#> n, area, bounding_box, circumference, diameter,
#> length, polygon, style, tibble, geom, arc, angle_at,
#> normal_at, tangent_at, place, point_at, aesthetics