Smooth shape coordinates using a moving average

coo_smooth(x, n, from_col, to_col, ...)

Arguments

x

coo_single, coo_list or mom_tbl

n

integer smoothing iterations

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

See also

Other coo_modifyers smooth: coo_smooth_curve()

Examples

bot %>% pick(1) %>% coo_smooth(5) %>% gg()