nudge: Move an object

nudgeR Documentation

Move an object

Description

Move an object

Usage

nudge(object, x, y, ...)

Arguments

object

object

x

nudge right and left

y

nudge up and down

...

<dynamic-dots> properties passed to style

Value

object of same class as object

Examples

ob_circle() |> nudge(x = 2)
# Alternative to nudge:
ob_circle() + ob_point(2, 0)

ggdiagram documentation built on Sept. 15, 2025, 1:07 a.m.