File: airdist.Rd

package info (click to toggle)
r-cran-spdep 1.1-5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,012 kB
  • sloc: ansic: 1,489; sh: 16; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 704 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% Copyright 2001 by Roger S. Bivand
\name{airdist}
\alias{airdist}
\title{Measure distance from plot}
\description{
Measure a distance between two points on a plot using \code{locator}; the function checks \code{par("plt")} and \code{par("usr")} to try to ensure that the aspect ratio y/x is 1, that is that the units of measurement in both x and y are equivalent.
}
\usage{
airdist(ann=FALSE)
}
\arguments{
  \item{ann}{annotate the plot with line measured and distance}
}
\value{
a list with members:
  \item{dist}{distance measured}
  \item{coords}{coordinates between which distance is measured}
}
\author{Roger Bivand \email{Roger.Bivand@nhh.no}}

\seealso{\code{\link{locator}}}

\keyword{spatial}