Skip to contents

This little function will return the co-ordinates and put a marker on given grid points. It is essentially the same ase points, but it accepts grid indices in stead of geographical co-ordinates.

Usage

gridpoints(x, y=NULL, ...)

Arguments

x,y

Grid indices (column and row) of the points to plot. Either 2 vectors, or a 2-column matrix.

...

Graphical parameters for the generic points function.

Value

A list with following members:

data

The value of the field in the chosen grid point.

x,y

The actual coordinates of the chosen grid point.

i,j

The matrix indices of the chosen grid point.

See also