powered by
Add a Vector to a 3D Coordinate System
vector3D(pl, v, fr = rep(0, 3), col = "red")
No return value, called for side effects
Matrix containing the current plot coordinates.
A vector with 3 entries.
The point at which the vector should start (defaults to the origin).
Color of the vector (defaults to red).
a=c(2,4,8) b=c(6,0,4) pl=coord3D() vector3D(pl,a) vector3D(pl,b) vector3D(pl,a-b,b,3)
Run the code above in your browser using DataLab