plot.axes {mining}R Documentation

Plot axes under projection

Description

Shows how unit vectors along the original dimensions appear under a projection.

Usage

plot.axes(w,col=2,origin,keep=0.2)

Arguments

w a numeric array with two columns and named rows
col color of arrows
origin If T, arrows emerge from (0,0). If F, arrows emerge from the center of the figure. If not given, arrows emerge from (0,0) if (0,0) is visible, otherwise from the figure center.
keep a length in inches, below which an arrow is not plotted.

Details

Each row of the array specifies a location in the figure. This location can be understood as the place where a unit vector along one of the original dimensions would appear. An arrow is drawn from the origin pointing toward this location and labeled with the row name. The relative length of the arrow is determined by the distance of the location from the origin, but all arrows are scaled as much as possible, to reduce crowding, while remaining inside the figure limits. Arrows which are very short are not plotted at all.

Value

Uses arrows to draw arrows on top of the current plot.

Author(s)

Tom Minka

See Also

project, pca, projection


[Package Contents]