laloclick: Click on the map and get the Lat-Lon co-ordinates.

View source: R/utility.R

laloclickR Documentation

Click on the map and get the Lat-Lon co-ordinates.

Description

With this command you caqn click n times on a map, and get the Lat-Lon co-ordinates of the points.

Usage

laloclick(n=1, ...)

Arguments

n

Number of points to be clicked.

...

Other arguments to 'locator'.

Value

An matrix dim(n,2) containing longitude and latitude.

See Also

locator

Examples

## Not run: 
lalo <- laloclick(2)   # lalo now contains the co-ordinates
points(proj4(lalo),pch='x')   # indicate the points on the present map.

## End(Not run)

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