This function draws several 2D views of a 3D plot, sort of like a spinning plot.
rotplot(x, y, number=9, theta=seq(0, pi/2, length = 9), ...)
x |
a matrix with 2 columns giving the horizontal axes of the full 3D plot. |
y |
the vertical axis of the 3D plot. |
number |
Number of 2D views of the 3D plot. |
theta |
a list of rotation angles |
... |
additional arguments passed to coplot |
For each value of theta, draw the plot of cos(theta)*x[,1]+sin(theta)*x[,2] versus y.
returns a graph object.
Sanford Weisberg, sandy@stat.umn.edu
data(ais) attach(ais) m1 <- dr(LBM ~ Ht + Wt + WCC) rotplot(dr.direction(m1,which=1:2),dr.y(m1),col=markby(Sex))