vector2D: Add a Vector to a 2D Coordinate System

View source: R/coord2D.R

vector2DR Documentation

Add a Vector to a 2D Coordinate System

Description

Add a Vector to a 2D Coordinate System

Usage

vector2D(v, fr = c(0, 0), col = 2)

Arguments

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).

Value

No return value, called for side effects

Examples

a=c(2,4)
b=c(0,3)
coord2D()
vector2D(a)
vector2D(b)
vector2D(a-b,b,"blue")

smallstuff documentation built on June 2, 2022, 5:06 p.m.