powered by
Plot one or more vectors in a 3D plot at one or more angles. A plot is produced for each entry of th.
th
allvectors3D(V, th = c(0, 30, 60, 90, 120, 150), V2 = NULL, col = NULL)
No return value, called for side effects
Either a vector of length 3 or a matrix with each column a vector of length 3.
A vector indicating the angles at which the plot should be shown.
A matrix or vector of the same dimensions as V indicating the starting points of the vectors in V (default is the origin for all).
Vector colors; if entered, must have a value for each vector.
a=c(2,4,8) b=c(6,0,4) oldpar <- par(mfrow=c(3,2)) allvectors3D(cbind(a,b,a-b),V2=matrix(c(rep(0,6),b),3)) par(oldpar)
Run the code above in your browser using DataLab