sim.void | R Documentation |
Generates points from a void point process using parameters provided by the user.
sim.void(pars, lims, parents = NULL)
pars |
A named vector containing the values of the parameters of the process that generates the points. |
lims |
A matrix or list of matrices with two columns,
corresponding to the upper and lower limits of each dimension,
respectively. If a list, then each matrix provides the limits
for the corresponding pattern in |
parents |
An optional matrix containing locations of
parents. If this is provided, then the parameter |
For a list of possible parameter names, see fit.ns.
A list. The first component gives the Cartesian coordinates of the generated points. The second component returns the parent locations.
## Two-dimensional void process.
void.data <- sim.void(c(Dc = 1000, Dp = 10, tau = 0.05), rbind(c(0, 1), c(0, 1)))
## Plotting the data.
plot(void.data$points)
points(void.data$parents, pch = 16, col = "red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.