Returns a sheared shape.

coo_shear(x, x_k, y_k, from_col, to_col, ...)

Arguments

x

coo_single, coo_list or mom_tbl

x_k, y_k

numeric shearing factor over x and y axes (default to 0, ie no shearing)

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

Examples

x <- bot %>% pick(1) %>% coo_center() x %>% gg()
x %>% coo_shear(x_k = 0.25) %>% gg()
x %>% coo_shear(y_k = -0.5) %>% gg()
x %>% coo_shear(x_k = 0.25, y_k = -0.5) %>% gg()