lamp {mp} | R Documentation |
Local Affine Multidimensional Projection
Description
Creates a 2D representation of the data. Requires a subsample (sample.indices) and its 2D representation (Ys).
Usage
lamp(X, sample.indices = NULL, Ys = NULL, cp = 1)
Arguments
X |
A data frame or matrix. |
sample.indices |
The indices of data points in X used as subsamples. If not given, some points from X will be randomly selected and Ys will be generated by calling forceScheme on them. |
Ys |
Initial 2D configuration of the data subsamples (will be ignored if sample.indices is NULL). Scaling the columns to [-0.5, 0.5] is recommended to avoid scaling problems. |
cp |
Proportion of nearest control points to be used. |
Value
The 2D representation of the data.
References
Joia, P.; Paulovich, F.V.; Coimbra, D.; Cuminato, J.A.; Nonato, L.G., "Local Affine Multidimensional Projection," Visualization and Computer Graphics, IEEE Transactions on , vol.17, no.12, pp.2563,2571, Dec. 2011
Examples
# Iris example
emb <- lamp(iris[, 1:4])
plot(emb, col=iris$Species)