Returns a shape centered on the origin.

coo_center(x, from_col = coo, to_col = coo, ...)

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

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

# S3 method for 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)

  • coo_single: coo_single method

  • coo_list: list method

  • mom_tbl: mom_tbl method

See also

Examples

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