arrowMul: Scale Vectors to Data

arrowMulR Documentation

Scale Vectors to Data

Description

Scale vector arrows to fill proportion of the data.

Usage

arrowMul(arrows, data, at = c(0, 0), fill = 0.75)

Arguments

arrows

a two-column matrix-like object containing coordinates for the arrows/vectors on x and y axes.

data

a two-column matrix-like object containing coordinates of the data on the x and y axes.

at

numeric vector of length 2; location of the origin of the arrows.

fill

numeric; what proportion of the range of the data to fill

Value

a numeric multiplier that will scale the arrows

Author(s)

Gavin L. Simpson


rasanderson/ggveganextra documentation built on Sept. 16, 2022, 10:04 a.m.