This function applies various transformations to a 'coors' object, including scaling, aspect ratio adjustment, rotation, mirroring, and pseudo-3D perspective transformation.
transform_coors(
coors,
scale = 1,
aspect_ratio = 1,
rotation = 0,
mirror_x = FALSE,
mirror_y = FALSE,
shear_x = 0,
shear_y = 0
)
A transformed 'coors' object with updated coordinates.
An object of class 'coors', containing node coordinates.
A numeric value to scale the layout (default = 1).
A numeric value to adjust the Y-axis scaling (default = 1).
A numeric value in degrees to rotate the layout (default = 0).
A logical value indicating whether to mirror along the X-axis (default = FALSE).
A logical value indicating whether to mirror along the Y-axis (default = FALSE).
A numeric value to apply a shear transformation in the X direction (default = 0).
A numeric value to apply a shear transformation in the Y direction (default = 0).