calcDist: calcDist function

View source: R/calcDist.R

calcDistR Documentation

calcDist function

Description

function to plot the interval between two points on the field map and display the distance between them.

Usage

calcDist(
  pt1,
  pt2,
  offset = c(5, 10),
  arlen = 0.1,
  printDist = TRUE,
  units = "ft",
  digits = 2,
  ...
)

Arguments

pt1

numeric. point 1, must be length 2.

pt2

numeric. point 2, must be length 2.

offset

numeric. Offset to display calculated value. Default is c(5, 10)

arlen

numeric. length of tick marks. Default is 0.10

printDist

logical. Should the distance be printed on the map? Default is TRUE

units

character. units used for measurment. Not functional only displayed as units on printed value. Default is "ft"

digits

integer. number of digits to display in printed distance value. Default is 0

Details

[fill in details here]

Value

[value]

Examples

# none

nsantantonio/fieldMapR documentation built on Feb. 4, 2025, 3:07 a.m.