Description Usage Arguments Details Value References Examples
For a given set of distance matrices, cmds
finds a smooth embedding in k
dimensions.
1 2 |
DL |
A list of |
k |
An integer defining the embedding dimension. Defaults to one. |
l |
The regularization parameter. Should be a positive real number. |
W |
One of ("NULL", "kamada-kawai", "sammon" or "unfolding") or an optional list of weight matrices. The custom weights must be of the same size as |
v |
verbose. If set to TRUE the function outputs information about the convergence during runtime. |
per |
periodic. If set to TRUE the penalty will be adjusted to enforce periodic embeddings. |
M |
An optional custom penalty matrix of size |
init |
The intialization method. Defaults to |
eps |
The accepted deviation from the previous iteration for convergence checking. |
group |
A group index vector of length N. |
The algorithm is based on multi-dimensional scaling (MDS). It solves multiple MDS problems simultaneously and connects the solutions smoothly via a smoothing penalty. The result is a list of coordinates of a set of N
points, such that at each timestep, the euclidean distances between the points are as close as possible to the distances in the distance matrix. The smoothness can be regulated and custom weights for the MDS cost function can be used.
cmds
provides several MDS variants via the parameter W
. W
can be set to
NULL
The algorithm uses an unweighted MDS cost function.
kamada-kawai
The weights are set to w_{ij} = 1/(d_{ij}^2), yielding a Kamada-Kawai layout.
sammon
The weights are set to w_{ij} = 1/(d_{ij}), constituing the so called Sammon's Mapping.
unfolding
This option codes multidimensional unfolding. In this variant, all within-group distances get zero weight. With this option one must give a grouping vector group
.
A list of custom weight matrices.
res A list with the following elements:
XL |
A list of Nxk matrices, whose rows contain the coordinates of the points for a given timestep. |
DL |
The input list of distance matrices. |
XL.init |
The initial configuration for the algorithm. |
params |
A list of parameters used by the algorithm. |
con |
A list of convergence characteristics |
Gina Gruenhage & Simon Barthelme, Visualizing the effects of a changing distance using continuous embeddings, http://arxiv.org/abs/1311.1911
1 2 3 | res <- cmds(QuadCurves)
res <- cmds(ExpandingTriangle, k = 2, v = TRUE)
res <- cmds(QuadCurves, l = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.