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