Centers shape and scale them so that they are inscribed in a size-side square.

coo_template(x, size = 1, from_col, to_col, ...)

# S3 method for coo_list
coo_template(x, size = 1, ...)

# S3 method for mom_tbl
coo_template(
  x,
  size = 1,
  from_col = coo,
  to_col = {     {         from_col     } },
  ...
)

Arguments

x

coo_single, coo_list or mom_tbl

size

numeric the side of the square inscribing the shape

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

Methods (by class)

  • coo_list: list method

  • mom_tbl: mom_tbl method

See also

Examples

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