Set position for the representation
setPosition(NGLVieweR, x = 0, y = 0, z = 0)
A NGLVieweR object.
Position along the x-axis in angstroms. Default is 0.
Position along the y-axis in angstroms. Default is 0.
Position along the z-axis in angstroms. Default is 0.
NGLVieweR object with updated setPosition parameters.
Other transformations:
setRotation()
,
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")) %>%
setPosition(25, 0, 0)