PointSim: Simulate a spatial point process or sequence

View source: R/PointSim.R

PointSimR Documentation

Simulate a spatial point process or sequence

Description

Creates a new Poisson Point Process in a spacejamr object

Usage

PointSim(points, window, type, seed)

Arguments

points

the number of points to simulate

window

a spacejamr object to use as the spatial extent

type

the type of simulation. poisson_process simulates a spatial Poisson process. halton simulates a Halton sequence where the maximal number of simulated points is the first argument.

seed

an optional seed

Value

An object of class PointSim that contains a geographical window of class 'owin'. Within this window are four objects. n: the number of simulated points. x: the x coordinates of the simulated points. y: the y coordinates of the simulated points. markformat: an empty place holder.

Author(s)

Darren Colby
Email: dscolby17@gmail.com

Examples

# Load spacejamr object
data("RI")

# Poisson process
ri_points <- PointSim(points = 10, window = RI, seed = 42)


spacejamr documentation built on April 2, 2022, 1:07 a.m.