rotate: Rotate a matrix

Description Usage Arguments Details Value Note Author(s) Examples

Description

Rotates a matrix of data so that columns are reversed

Usage

1
rotate(data_matrix)

Arguments

data_matrix

Used in this package with matrix output by make_do_matrix or make_temp_matrix as part of the function plot_column(). Any matrix will work, though.

Details

Used to rotate the DO or temperature matrices so that depth 0 is at the top of a contour plot and the max depth is at the bottom.

Value

Returns a matrix that has been rotated so that it reads from bottom to top

Note

Used with make_do_matrix(), make_temp_matrix(), and plot_column(). plot_column() depends on this function.

Author(s)

An anonymous author on Stack Overflow Alexandra Linz <amlinz16@gmail.com>

Examples

1
2
3
data(metadata)
temp <- make_temp_matrix("TBE.....07", metadata)
r_temp <- rotate(temp)

OTUtable documentation built on May 1, 2019, 10:51 p.m.