centroidiam {overlapptest}R Documentation

Compute Centroids and Diameters

Description

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

Usage

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

data(Astragalus)
X<-centroidiam(Astragalus)
X$centroids
X$diams

[Package overlapptest version 1.3 Index]