View source: R/demo-population-simulation.R
demo_population_simulation | R Documentation |
run several population simulations and visualize the result, refer to vignette('pgmcs')
for examples
demo_population_simulation(nrun, ngeneration, population, fitness, title)
nrun |
integer scalar. Number of simulation runs. |
ngeneration |
integer scalar. Number of generations |
population |
integer vector. How many dominant homozygotes, heterozygotes, and recessive homozygotes do the initial population contain. For example, |
fitness |
numeric vector. The fitness value of AA, Aa and aa. |
title |
string. Plot title. |
the underlying workhorse is population_simulation()
an ggplot object
shiny::runApp(system.file('shiny', package = 'pgs'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.