I want a window size with area = 1, but when I make this change in the code I get an error trying to generate holes. See code below that reproduces this error:
# changed window size to area = 1
custom_window = spatstat.geom::owin(xrange = c(0, 1), yrange = c(0, 1))
sim_object = CreateSimulationObject(sims = 1, cell_types = 1, window = custom_window)
sim_object = GenerateSpatialPattern(sim_object,
lambda = 50000)
## if you want HOLES
sim_object = GenerateHoles(sim_object, step_size = 0.1, cores = 1)
The error produced is "Error in GenerateHoles(sim_object, step_size = 0.1, cores = 1) : x and y range outside simulation window limits".
Could you provide guidance on what arguments are needed for the GenerateHoles function to resolve this error?
I want a window size with area = 1, but when I make this change in the code I get an error trying to generate holes. See code below that reproduces this error:
The error produced is "Error in GenerateHoles(sim_object, step_size = 0.1, cores = 1) : x and y range outside simulation window limits".
Could you provide guidance on what arguments are needed for the GenerateHoles function to resolve this error?