centroidiam: Compute Centroids and Diameters

Description Usage Arguments Details Value Author(s) Examples

View source: R/centroidiam.R

Description

Computes the centroid and diameter of each individual polygon in a multi-polygon owin object.

Usage

1
centroidiam(ventana1)

Arguments

ventana1

A multiple-polygon window with the format owin of spatstat

Details

Iteratively applies the functions centroid.owin and diameter of spatstat to each polygon in the multipolygon owin and computes its centroid and its diameter.

Value

diams

Vector of diameters

centroids

Matrix with the coordinates of the centroids

Author(s)

Marcelino de la Cruz Rot

Examples

1
2
3
4
data(Astragalus)
X<-centroidiam(Astragalus)
X$centroids
X$diams

overlapptest documentation built on March 16, 2021, 1:08 a.m.