powered by
Rotation on two variables of a numeric dataset
rotation(d, angle, axis = 1:2, range = 2 * pi)
The dataset.
The angle of the rotation.
The axis.
The range of the angle (360, 2*pi, 100, ...)
A rotated data matrix.
# NOT RUN { d = data.parabol () d [, -3] = rotation (d [, -3], 45, range = 360) plotdata (d [, -3], d [, 3]) # }
Run the code above in your browser using DataLab