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

clickdist

Interactively Measure Distance


Description

Measures the distance between two points which the user has clicked on.

Usage

clickdist()

Details

This function allows the user to measure the distance between two spatial locations, interactively, by clicking on the screen display.

When clickdist() is called, the user is expected to click two points in the current graphics device. The distance between these points will be returned.

This function uses the R command locator to input the mouse clicks. It only works on screen devices such as ‘X11’, ‘windows’ and ‘quartz’.

Value

A single nonnegative number.

Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.

See Also


spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

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