Useful for centered or aligned shapes.

coo_up(x, from_col, to_col, ...)

coo_down(x, from_col, to_col, ...)

coo_left(x, from_col, to_col, ...)

coo_right(x, from_col, to_col, ...)

Arguments

x

coo_single, coo_list or mom_tbl

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

Details

  • coo_up retains only coordinates with y >= 0

  • coo_down retains only coordinates with y <= 0

  • coo_left retains only coordinates with x <= 0

  • coo_right retains only coordinates with x >= 0

Functions

  • coo_up: filter upper part of a shape

  • coo_down: filter lower part of a shape

  • coo_left: filter left part of a shape

  • coo_right: filter right part of a shape

See also

Examples

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