Learn R Programming

spatstat (version 1.64-1)

pp3: Three Dimensional Point Pattern

Description

Create a three-dimensional point pattern

Usage

pp3(x, y, z, ..., marks=NULL)

Arguments

x,y,z

Numeric vectors of equal length, containing Cartesian coordinates of points in three-dimensional space.

Arguments passed to as.box3 to determine the three-dimensional box in which the points have been observed.

marks

Optional. Vector, data frame, or hyperframe of mark values associated with the points.

Value

Object of class "pp3" representing a three dimensional point pattern. Also belongs to class "ppx".

Details

An object of class "pp3" represents a pattern of points in three-dimensional space. The points are assumed to have been observed by exhaustively inspecting a three-dimensional rectangular box. The boundaries of the box are included as part of the dataset.

See Also

box3, print.pp3, ppx

Examples

Run this code
# NOT RUN {
   X <- pp3(runif(10), runif(10), runif(10),
            box3(c(0,1)),
            marks=rnorm(10))
   X
# }

Run the code above in your browser using DataLab