gridpoints: Indicate grid points on the current image.

View source: R/utility.R

gridpointsR Documentation

Indicate grid points on the current image.

Description

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

DomainPoints,points


adeckmyn/meteogrid documentation built on Jan. 13, 2025, 11:02 p.m.