Apply a shift or a scaling factor to either one or both x and y polygon coordinates stored in Kandinsky `sf` slot
scale_coords(seurat, xfact = NULL, yfact = NULL, fun = c("*", "+", "/", "-"))
a Seurat object containing Kandinsky data (`KanData()`)
numeric value, shifting or scaling factor to apply to x coordinates. Default value is 0 for shifting, and 1 for scaling transformations
numeric value, shifting or scaling factort o apply to y coordinates. Default value is 0 for shifting, and 1 for scaling transformations
character indicating the operator to use for coordinate transformation. Must be one of the following: `"*"`: multiply x/y coordinates by xfact/yfact (scaling) `"+"`: add xfact/yfact to x/y coordinates (shifting) `"/"`: divide x/y coordinates by xfact/yfact (scaling) `"-"`: subtract xfact/yfact to x/y coordinates (shifting)
Seurat object with updated polygon coordinates in Kandinsky `sf` slot