addVar: Plot vector of a quantitative variable over a MDS map.

Description Usage Arguments Value Examples

View source: R/mds.R

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

1
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

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

chroGPS documentation built on Oct. 31, 2019, 4:52 a.m.