View source: R/HelpFunctions.R
turnmat | R Documentation |
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.
turnmat(x)
x |
Matrix to be turned. |
Matrix x
, turned by 90 degrees counter-clockwise.
set.seed(987)
sampleMat <- matrix(stats::rnorm(100), nrow = 10)
sampleMatTurn <- turnmat(x = sampleMat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.