findR: Computes the distance between the centroid and the most...

View source: R/findR.R

findRR Documentation

Computes the distance between the centroid and the most distant coordinate of a geographical coordinate set

Description

Computes the distance between the centroid and the most distant coordinate of a geographical coordinate set.

Usage

findR(coords)

Arguments

coords

A matrix or data frame of 2 columns of geographical coordinates

Value

The distance

See Also

polycirc

Examples


mydata<-cbind(x=rnorm(20),y=rnorm(20))
radius<-findR(mydata)
centroid<-matrix(colMeans(mydata),ncol=2)
plot(mydata,asp=1)
points(centroid,pch=19,col="red",cex=2)
polygon(polycirc(radius,centroid),border="red")

pgirmess documentation built on April 8, 2023, 1:12 a.m.

Related to findR in pgirmess...