reorder2d {OpenRepGrid} | R Documentation |
Order grid by angles between construct and/or elements in 2D.
Description
The approach is to reorder the grid matrix by their polar angles on the first two principal components from a data
reduction technique (here the biplot, i.e. SVD). The function reorder2d
reorders the grid according to the angles
between the x-axis and the element (construct) vectors derived from a 2D biplot solution. This approach is apt to
identify circumplex structures in data indicated by the diagonal stripe in the display (see examples).
Usage
reorder2d(
x,
dim = c(1, 2),
center = 1,
normalize = 0,
g = 0,
h = 1 - g,
rc = TRUE,
re = TRUE,
...
)
Arguments
x |
|
dim |
Dimension of 2D solution used to calculate angles
(default |
center |
Numeric. The type of centering to be performed.
|
normalize |
A numeric value indicating along what direction (rows, columns)
to normalize by standard deviations. |
g |
Power of the singular value matrix assigned to the left singular vectors, i.e. the constructs. |
h |
Power of the singular value matrix assigned to the right singular vectors, i.e. the elements. |
rc |
Logical. Reorder constructs by similarity (default |
re |
Logical. Reorder elements by similarity (default |
... |
Not evaluated. |
Value
Reordered repgrid
object.
Examples
x <- feixas2004
reorder2d(x) # reorder grid by angles in first two dimensions
reorder2d(x, rc = FALSE) # reorder elements only
reorder2d(x, re = FALSE) # reorder constructs only