| spin-generic | R Documentation | 
Spin (rotate) an object spatially (limited to xy rotations)
## S4 method for signature 'giottoPolygon'
spin(x, angle, x0 = NULL, y0 = NULL)
## S4 method for signature 'giottoPoints'
spin(x, angle, x0 = NULL, y0 = NULL)
## S4 method for signature 'spatLocsObj'
spin(
  x,
  angle = NULL,
  x0 = NULL,
  y0 = NULL,
  z0 = NULL,
  xy_angle = NULL,
  zy_angle = NULL,
  xz_angle = NULL
)
| x | object | 
| angle | numeric. Angle of rotation in degrees | 
| x0 | numeric. x-coordinate of the center of rotation. Defaults to center x val if not given. | 
| y0 | numeric. y-coordinate of the center of rotation. Defaults to center y val if not given. | 
| z0 | spatLocsObj specific. Numeric. z-coordinate of the center of rotation. Depending on if z data is present, defaults to either 0 or center z val if not given. | 
| xy_angle | spatLocsObj specific. xy plane rotation in degrees. Overrides angle param | 
| zy_angle | spatLocsObj specific. zy plane rotation | 
| xz_angle | spatLocsObj specific. xz plane rotation | 
spin(giottoPolygon): Spin a giottoPolygon object
spin(giottoPoints): Spin a giottoPoints object
spin(spatLocsObj): Spin a spatLocsObj
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.