sphere: Title Generate a sphere

Description Usage Arguments Details Value

Description

Title Generate a sphere

Usage

1
2
sphere(radius = 1, coord_type = c("geo_deg", "geo_rad", "polar"),
  unitname = NULL, ...)

Arguments

radius

Numeric. Defaults to 1.

coord_type

String. Type of coordinates used. See details.

unitname

Optional. Name of unit of length. Either a single character string, or a vector of two character strings giving the singular and plural forms, respectively.

...

Ignored.

Details

Currently three coordinate types/conventions are supported:

"geo_deg"

Geographical coordinates in degrees. Latitude from -90 (south pole) to 90 (north pole). Longitude from -180 to 180 where 0 is the prime meridian (Greenwich).

"geo_rad"

Geographical coordinates in radians. Latitude from -pi/2 (south pole) to pi/2 (north pole). Longitude from -pi/2 to pi/2 where 0 is the prime meridian (Greenwich).

"polar"

Polar coordinates in radians. Latitude from 0 (north pole) to pi (south pole). Longitude from 0 to 2*pi where 0 is the prime meridian (Greenwich).

Value

Object of class "sphericaldomain"


rubak/spatstatsphere documentation built on May 28, 2019, 9:56 a.m.