| laloclick | R Documentation | 
With this command you caqn click n times on a map, and get the Lat-Lon co-ordinates of the points.
laloclick(n=1, ...)
n | 
 Number of points to be clicked.  | 
... | 
 Other arguments to 'locator'.  | 
An matrix dim(n,2) containing longitude and latitude.
locator
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.