Simulates cell evolution
Arguments
- time
The final simulation time.
- quiet
An optional Boolean flag to avoid the progress bar (default: FALSE).
Examples
# set the seed of the random number generator
set.seed(0)
# create a simulation
sim <- SpatialSimulation()
sim$add_mutant("A", growth_rate = 0.2, death_rate = 0.1)
sim$place_cell("A", 500, 500)
# simulate the tissue up to simulate timed 100
sim$run_up_to_time(40)
#>
[████████████████████████████████████████] 100% [00m:00s] Saving snapshot