Learn R Programming

chroGPS (version 1.16.0)

addVar: 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

Run this code
# Not run
# See chroGPS-manual.pdf for examples.

Run the code above in your browser using DataLab