Returns a shape translated by x_trans and y_trans.

coo_trans(x, x_trans = 0, y_trans = 0, from_col, to_col, ...)

Arguments

x

coo_single, coo_list or mom_tbl

x_trans, y_trans

numeric how much translate on each direction

from_col

colnames from where to get the coo_list and how to name the resulting one (only for mom_tbl method)

to_col

colnames from where to get the coo_list and how to name the resulting one (only for mom_tbl method)

...

useless here

Value

a coo_single, coo_list or mom_tbl

See also

Examples

bot %>% pick() %>% coo_center() %>% coo_trans(5, 5) %>% gg()