vector2D | R Documentation |
Add a Vector to a 2D Coordinate System
vector2D(v, fr = c(0, 0), col = 2)
v |
A vector with 2 entries. |
fr |
Vector containing 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)
b=c(0,3)
coord2D()
vector2D(a)
vector2D(b)
vector2D(a-b,b,"blue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.