View source: R/update_window.R
| UpdateSimulationWindow | R Documentation |
This function updates the simulation window of a SpatSimObj by replacing
the existing window with a new one.
UpdateSimulationWindow(sim_object, window = NULL)
sim_object |
A |
window |
A new |
The UpdateSimulationWindow() function checks that the input sim_object is of class
'SpatSimObj', that the input window is not null and is of class 'owin'.
If these checks pass, the function updates the simulation window in the input sim_object and
returns the updated SpatSimObj object.
The updated SpatSimObj object
CreateSimulationObject
# Create a simulation object
sim_obj <- CreateSimulationObject()
# Update the simulation window
new_window <- spatstat.geom::owin(c(0, 5), c(0, 5))
updated_sim_obj <- UpdateSimulationWindow(sim_obj, window = new_window)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.