Set rotation for the representation
setRotation(NGLVieweR, x = 0, y = 0, z = 0, degrees = TRUE)
A NGLVieweR object.
Rotation angle around the x-axis. Default is 0.
Rotation angle around the y-axis. Default is 0.
Rotation angle around the z-axis. Default is 0.
A logical value. If TRUE (default), the input angles are assumed to be in degrees and will be converted to radians. If FALSE, the angles are assumed to be in radians.
NGLVieweR object with updated rotateView parameters.
Other transformations:
setPosition()
,
setScale()
,
zoomMove()
NGLVieweR("7CID") %>%
stageParameters(backgroundColor = "white") %>%
addRepresentation("cartoon", param=list(name="cartoon", colorValue="red")) %>%
addRepresentation("ball+stick", param=list(name="ball+stick",
colorValue="yellow",
colorScheme="element",
sele="200")) %>%
setRotation(30, 45, 60, degrees = TRUE)