arrows3D {compositions} | R Documentation |
adds 3-dimensional arrows to an rgl plot.
arrows3D(...) ## Default S3 method: arrows3D(x0,x1,...,length=0.25, angle=30,code=2,col="black", lty=NULL,lwd=2,orth=c(1,0.0001,0.0000001), labs=NULL,size=lwd)
x0 |
a matrix or vector giving the starting points of the arrows |
x1 |
a matrix or vector giving the end points of the arrows |
... |
additional plotting parameters as described in
rgl.material |
length |
a number giving the length of the arrowhead |
angle |
numeric giving the angle of the arrowhead |
code |
0=no arrowhead,1=arrowhead at x0,2=arrowhead at x1,3=double headed |
col |
the color of the arrow |
lty |
Not implemented, here for compatibility reasons with
arrows |
lwd |
line width in pixels |
orth |
the flat side of the arrow is not unique by x0 and x1. This ambiguity is solved in a way that the arrow seams as wide as possible from the viewing direction orth. |
labs |
labels to be plotted to the endpoints of the arrows |
size |
size of the plotting symbol |
The function is called to plot arrows into an rgl plot. The size of the arrow head is given in a absolute way. Therefore it is important to give the right scale for the length, to see the arrow head and that it does not fill the whole window.
Nothing
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
x <- cbind(rnorm(10),rnorm(10),rnorm(10)) plot3D(x) x0 <- x*0 arrows3D(x0,x)