coo_trans: Translate shapes

Description Usage Arguments Value See Also Examples

View source: R/coo_modifyers.R

Description

Returns a shape translated by x_trans and y_trans.

Usage

1
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

Other coo_modifyers: coo_align(), coo_baseline(), coo_center(), coo_reflect, coo_rev(), coo_rotatecenter(), coo_rotate(), coo_sample_rr(), coo_sample(), coo_scale(), coo_shear(), coo_slide(), coo_split(), coo_template(), coo_trim(), coo_up()

Other translations: coo_center()

Examples

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

MomX/Momocs2 documentation built on May 13, 2020, 4:28 a.m.