Learn R Programming

pgs (version 0.4-0)

PointPattern: Generator of PointPattern objects

Description

Generate a PointPattern-class object representing a finite point pattern.

Usage

PointPattern(coord)

Arguments

coord
a matrix or a vector. If coord is a vector, it is transformed into a matrix with one column. Each column contains the Cartesian coordinates of a point. Hence the number of rows of coord defines the dimension of the space.

Value

An object of PointPattern-class.

See Also

PointPattern-class, generators PP2, PP3, generators of higher-dimensional figures Quadrat, Segment.

Examples

Run this code
## Random planar point pattern
PointPattern(matrix(runif(10),2,5))
## Planar point pattern which consists of a single point
PointPattern(rep(0,2))
## Random point pattern on the line
PointPattern(matrix(runif(5),1,5))

Run the code above in your browser using DataLab