area.sphwin: Calculate the area on the surface of a sphere

View source: R/area.sphwin.R

area.sphwinR Documentation

Calculate the area on the surface of a sphere

Description

Calculates the area of a sphere or a subset of the sphere (cap, band, wedge or polygon)

Usage

 ## S3 method for class 'sphwin'
area(w)

Arguments

w

The window for which the area is calculated. An object of type "sphwin".

Value

The area of the sphere is returned as an object of type numeric.

Note

This function is the analogue for point processes on the sphere of the function area.owin in spatstat, which is the corresponding function for point processes in R^2.

Author(s)

Tom Lawrence <email:tjlawrence@bigpond.com>

See Also

eroded.areas.sphwin, area.owin

Examples

sph <- sphwin(type="sphere")
area.sphwin(w=sph)

sphcap <- sphwin(type="sphere", param=c(0, pi/3))
area.sphwin(w=sphcap)

baddstats/spherstat documentation built on Feb. 6, 2023, 1:45 a.m.