Returns a scaled shape. Note that normalized centroid size is used by default. See get_centsize_norm.

coo_scale(x, scale, centsize = get_centsize_norm, from_col, to_col, ...)

coo_scale_x(x, scale, from_col, to_col, ...)

coo_scale_y(x, scale, from_col, to_col, ...)

Arguments

x

coo_single, coo_list or mom_tbl

scale

numeric scaling factor (get_centsize_norm by default).

centsize

function either get_centsize_norm (default) or get_centsize. No brackets.

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

Functions

  • coo_scale_x: scale along x-axis

  • coo_scale_y: scale along y-axis

See also

Examples

x <- bot %>% pick(1) x %>% gg()
x %>% coo_scale() %>% gg()
x %>% coo_scale_x(5) %>% gg()
x %>% coo_scale_y(5) %>% gg()