spp: Spherical point pattern

Description Usage Arguments Value Examples

Description

Import spatstat

Usage

1
spp(lat, long, domain = NULL, ..., check = TRUE)

Arguments

lat

Numeric. Latitudes of points.

long

Numeric. Longitude of points.

domain

Domain where the points occur. Object of class "sphericaldomain".

...

Arguments passed to sphere if the domain is not otherwise specified.

check

Logical. Check that points actually are inside the provided domain.

Value

Object of class "spp".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
dom <- sphere(coord_type = "polar")
lat <- pi * c(1/4, 1/2, 3/4)
long <- 2 * pi * c(1/4, 1/2, 3/4)
X <- spp(lat, long, domain = dom)
X <- spp(lat, long, coord_type = "polar")

lat <- c(45, 0, -45)
long <- c(90, 180, -90)
X <- spp(lat, long)
dom <- sphere(coord_type = "geo_deg")
X <- spp(lat, long, domain = dom)

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