xplotting axis by the specified number of degrees, where x, y, and z are integer, real, or double-precision scalars. Before the rotation, the positive
xdirection is to the right, the positive
ydirection is up, and the positive
zdirection comes out of the screen. (The direction of rotation is clockwise when looking down the corresponding axis from its positive side.)
The first rotation is 30 degrees about the positive
v = seq(3)
gplot(v, v, v)
grotate(30, 0, 70)
zdirection. This leaves the positive
zdirection fixed, makes the positive
xdirection down and to the right, and makes the positive
ydirection up and to the right.
The second rotation of 0 degrees about the positive
ydirection has no effect.
The third rotation of 70 degrees about the positive
xdirection (which is now down and to the right) leaves the positive
zdirection up and out of the screen, the positive
ydirection to the right, up, and into the screen, and the positive
xdirection as it was, down and to the right in the plane of the screen.