Description Usage Arguments Value Author(s) Examples
This function plots the distribution of both the starting and the final frequencies in one plot
1 | plot_start_end(results, picked_ancestor = "ALL")
|
results |
An object which is the result of |
picked_ancestor |
Default is "ALL", where different colors indicate different ancestors. Alternatively, for clarity, the user can specify a specific ancestral allele, and only that allele is plotted |
a ggplot2 object
Thijs Janzen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | s <- 0.01
select_matrix <- matrix(nrow = 1, ncol = 5)
select_matrix[1, ] <- c(0.25, 1.0, 1 + 0.5 * s, 1 + s, 0)
track_freq <- c(0.2, 0.3, 100)
selected_pop <- isoSIM::create_population_selection(pop_size = 1000,
number_of_founders = 10,
total_runtime = 11,
morgan = 1,
select_matrix,
seed = 1234,
track_frequency = track_freq)
plot_start_end(selected_pop,
picked_ancestor = "ALL")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.