# reorder2d: Order grid by angles between construct and/or elements in 2D. In markheckmann/OpenRepGrid: Tools to Analyze Repertory Grid Data

## 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

 ``` 1 2 3 4 5 6 7 8 9 10 11``` ```reorder2d( x, dim = c(1, 2), center = 1, normalize = 0, g = 0, h = 1 - g, rc = TRUE, re = TRUE, ... ) ```

## Arguments

 `x` `repgrid` object. `dim` Dimension of 2D solution used to calculate angles (default `c(1,2)`). `center` Numeric. The type of centering to be performed. 0= no centering, 1= row mean centering (construct), 2= column mean centering (elements), 3= double-centering (construct and element means), 4= midpoint centering of rows (constructs). The default is `1` (row centering). `normalize` A numeric value indicating along what direction (rows, columns) to normalize by standard deviations. `0 = none, 1= rows, 2 = columns` (default is `0`). `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 `TRUE`). `re` Logical. Reorder elements by similarity (default `TRUE`). `...` Not evaluated.

## Value

Reordered `repgrid` object.

Mark Heckmann

## Examples

 ```1 2 3 4 5 6 7 8``` ```## Not run: x <- feixas2004 reorder2d(x) # reorder grid by angles in first two dimensions reorder2d(x, rc=F) # reorder elements only reorder2d(x, re=F) # reorder constructs only ## End(Not run) ```

markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.