coo_center: Center shapes

Description Usage Arguments Value Methods (by class) See Also Examples

View source: R/coo_modifyers.R

Description

Returns a shape centered on the origin.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
coo_center(x, from_col = coo, to_col = coo, ...)

## S3 method for class 'coo_single'
coo_center(x, ...)

## S3 method for class 'coo_list'
coo_center(x, ...)

## S3 method for class 'mom_tbl'
coo_center(x, from_col = coo, to_col = {
    {
        from_col
    }
}, ...)

Arguments

x

coo_single, coo_list or mom_tbl

from_col, 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

Methods (by class)

See Also

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

Other translations: coo_trans()

Examples

1
2
bot %>% pick(1) %>% coo_center %>% gg()
bot %>% coo_center %>% pile()

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