Plot the number of stochastic events in the simulation.
Source:R/plot_simulation_statistics.R
plot_firings.Rd
A pie chart with events split by type, mutant and epigentic state where they occurred. It also provides annotations for the simulation information.
Examples
sim <- SpatialSimulation()
sim$add_mutant(name = "A",
epigenetic_rates = c("+-" = 0.01, "-+" = 0.02),
growth_rates = c("+" = 0.2, "-" = 0.08),
death_rates = c("+" = 0.1, "-" = 0.01))
sim$place_cell("A+", 500, 500)
sim$run_up_to_time(60)
#>
[████████████████████████████████████████] 100% [00m:00s] Saving snapshot
plot_firings(sim)