Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

find_max_cell

Maximum (or minimum) value cell in a matrix.


Description

Find the indices of the maximum value in a matrix.

Usage

find_max_cell(x,max=TRUE)

Arguments

x

a numeric matrix

max

The default is to return the indices of the maximum value(s). max=FALSE returns those of the minimum.

Value

A list containing the column (x) and row (y) indices.

Note

Intended to enable the user to mark cells in sampcolor2D.matplot. Remember to subtract 0.5 from both values to center the mark in the cell.

Author(s)

Jim Lemon


plotrix

Various Plotting Functions

v3.8-1
GPL (>= 2)
Authors
Jim Lemon, Ben Bolker, Sander Oom, Eduardo Klein, Barry Rowlingson, Hadley Wickham, Anupam Tyagi, Olivier Eterradossi, Gabor Grothendieck, Michael Toews, John Kane, Rolf Turner, Carl Witthoft, Julian Stander, Thomas Petzoldt, Remko Duursma, Elisa Biancotto, Ofir Levy, Christophe Dutang, Peter Solymos, Robby Engelmann, Michael Hecker, Felix Steinbeck, Hans Borchers, Henrik Singmann, Ted Toal, Derek Ogle, Darshan Baral, Ulrike Groemping, Bill Venables
Initial release
2021-01-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.