powered by
Reorder indexes for constructs and elements are calculated using the coordinates of the given dimensions.
angleOrderIndexes2d(x, dim = c(1, 2), clockwise = TRUE)
A list containing the indexes to reorder the grid. The first list element for the constructs, the second for the elements indexes.
A repgrid object that has been submitted to calcBiplotCoords().
repgrid
calcBiplotCoords()
Dimensions used to calculate angles for reordering grid.
Logical. Positive angles are clockwise with x axis as basis.
if (FALSE) { x <- randomGrid(15, 30) # make random grid i <- angleOrderIndexes2d(x) # make indexes for ordering x <- x[i[[1]], i[[2]]] # reorder constructs and elements x # print grid }
Run the code above in your browser using DataLab