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

TT.polygon.centroids

Internal. Determines the centroid of 1 polygon (in x-y coordinates).


Description

Determines the centroid of 1 non-intersecting polygon (in x-y

coordinates). Used to determine the centroid of each texture

class in the texture triangle onces its clay silt sand

coordinates have been converted to x-y coordinates. pol.x[1]:pol.y[1]

is supposed different from pol.x[n]:pol.y[n] (i.e. the polygon

is NOT closed).

After "http://local.wasp.uwa.edu.au/~pbourke/geometry/polyarea/

Calculating The Area And Centroid Of A Polygon. Written by

Paul Bourke, July 1988".

Usage

TT.polygon.centroids(pol.x, pol.y)

Arguments

pol.x

Vector of numericals. X coordinates of each vertices of the

polygon.

pol.y

Vector of numericals. Y coordinates of each vertices of the

polygon.

Value

Returns a vector of 2 numericals: x and y coordinates of

the polygon's centroid. Vector items are names "x" and "y".

Author(s)

Julien Moeys [aut, cre], Wei Shangguan [ctb], Rainer Petzold [ctb], Budiman Minasny [ctb], Bogdan Rosca [ctb], Nic Jelinski [ctb], Wiktor Zelazny [ctb], Rodolfo Marcondes Silva Souza [ctb], Jose Lucas Safanelli [ctb], Alexandre ten Caten [ctb]


soiltexture

Functions for Soil Texture Plot, Classification and Transformation

v1.5.1
AGPL (>= 3)
Authors
Julien Moeys [aut, cre], Wei Shangguan [ctb], Rainer Petzold [ctb], Budiman Minasny [ctb], Bogdan Rosca [ctb], Nic Jelinski [ctb], Wiktor Zelazny [ctb], Rodolfo Marcondes Silva Souza [ctb], Jose Lucas Safanelli [ctb], Alexandre ten Caten [ctb]
Initial release
2018-09-19

We don't support your browser anymore

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