Learn R Programming

mrbsizeR (version 1.3)

turnmat: Turn matrix 90 degrees counter-clockwise.

Description

Help function to turn matrix 90 degrees counter-clockwise. turnmat is used as an internal function in some of the plotting functions. Depending on how the data is stored, it can be necessary to turn the matrices 90 degrees counter-clockwise for being able to plot them correctly.

Usage

turnmat(x)

Value

Matrix x, turned by 90 degrees counter-clockwise.

Arguments

x

Matrix to be turned.

Examples

Run this code
set.seed(987)
sampleMat <- matrix(stats::rnorm(100), nrow = 10)
sampleMatTurn <- turnmat(x = sampleMat)

Run the code above in your browser using DataLab