EcoGenetics (version 1.2.1-4)

aue.rotate: Rotation of a matrix

Description

The program flips the matrix in the desired direction, given as a vector with four coordinates indicating the matrix corners (1 = upper left, 2= upper right, 3 = lower right, 4 = lower left). The position of the input matrix is c(1,2,3,4). For example, a transposition is c(1,4,3,2).

Usage

aue.rotate(x, direction = c(1, 2, 3, 4))

Arguments

x

input matrix

direction

vector with four coordinates indicating the position of the matrix angles. 1 = upper left, 2= upper right, 3 = lower right, 4 = lower left.

y0

point column