Skip to contents

Translates the coordinates by a 'x' and 'y' value

Usage

coo_trans(coo, x = 0, y = 0)

Arguments

coo

matrix of (x; y) coordinates or any Coo object.

x

numeric translation along the x-axis.

y

numeric translation along the y-axis.

Value

a matrix of (x; y) coordinates, or a Coo object.

Examples

coo_plot(bot[1])

coo_plot(coo_trans(bot[1], 50, 100))


# on Coo
b <- bot %>% slice(1:5) # for speed sake
stack(b)

stack(coo_trans(b, 50, 100))