Learn R Programming

SepTest (version 0.0.1)

plot_stDPP: Plot spatio-temporal determinantal point process (DPP) realizations

Description

Produces diagnostic plots for spatio-temporal determinantal point process (DPP) simulations or fitted models. The function formats the plot title based on the spatial and temporal interaction parameters \(\alpha_s\) and \(\alpha_t\), automatically displaying either the parameters themselves or their reciprocals when greater than 1.

Usage

plot_stDPP(data, type = c("3D", "space", "time"), alpha_s, alpha_t)

Value

No return value. The function is called for its side effect of producing a diagnostic plot.

Arguments

data

A spatio-temporal point pattern object suitable for plot_stpp(), typically from the stpp or related packages.

type

Character string specifying the type of plot to produce. This is passed directly to plot_stpp(). Typical values are "3D", "space", and "time".

alpha_s

Numeric scalar (> 0). Spatial interaction parameter of the DPP model.

alpha_t

Numeric scalar (> 0). Temporal interaction parameter of the DPP model.

Details

If \(\alpha_s > 1\) and \(\alpha_t > 1\), the title displays \(\alpha_s^{-1}\) and \(\alpha_t^{-1}\), which correspond to interaction ranges. Otherwise, the parameters are shown directly.

The function then calls plot.ST.pp() to produce the actual plot.

Examples

Run this code

# Simulate a stationary separable Matérn ST-DPP
sim <- rstDPP(
  mode     = "stationary",
  model    = "S",
  spectral = "matern",
  alpha_s  = 10,
  alpha_t  = 4.7,
  nu       = 2,
  eps      = 1,
  lambda_max = 70,
  grid_size  = 1.5
)
 plot_stDPP(sim, type = "3D",  alpha_s = 10, alpha_t = 4.7)

Run the code above in your browser using DataLab