vector3D | R Documentation |
Add a Vector to a 3D Coordinate System
vector3D(pl, v, fr = rep(0, 3), col = "red")
pl |
Matrix containing the current plot coordinates. |
v |
A vector with 3 entries. |
fr |
The point at which the vector should start (defaults to the origin). |
col |
Color of the vector (defaults to red). |
No return value, called for side effects
a=c(2,4,8)
b=c(6,0,4)
pl=coord3D()
vector3D(pl,a)
vector3D(pl,b)
vector3D(pl,a-b,b,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.