addVar {chroGPS} | R Documentation

## Plot vector of a quantitative variable over a MDS map.

### Description

Given a quantitative variable as a numeric vector with one element for each point on a MDS map, calculate and plot the weight vector corresponding to that variable.

### Usage

    addVar(mds1, z, plot = TRUE, label = "z", pos = 3, ...)

### Arguments

`mds1` | An object of class `mds` with the MDS object.
`z` | Numeric vector with the quantitative variable, one element for each point.
`plot` | Set to TRUE to calculate and draw the resulting vector on the MDS.
`label` | Something to be printed on the tip of the vector arrow, usually the name of the given variable.
`pos` | Graphical position where the label is drawn respect to the vector arrow tip.
`...` | Additional parameters given to the generic function `plot`.

### Value

A named list with the vector components.

### Examples

    # Not run
    # See chroGPS-manual.pdf for examples.

[Package chroGPS version 2.2.0 Index]