Learn R Programming

OTUtable (version 1.1.2)

rotate: Rotate a matrix

Description

Rotates a matrix of data so that columns are reversed

Usage

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.

Value

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

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.

Examples

Run this code
# NOT RUN {
data(metadata)
temp <- make_temp_matrix("TBE.....07", metadata)
r_temp <- rotate(temp)

# }

Run the code above in your browser using DataLab