plot_frequencies {GenomeAdmixR} | R Documentation |
This function plots the frequency of all ancestors after performing a simulation.
plot_frequencies(
result,
locations = seq(0, 1, length.out = 100),
progress_bar = FALSE
)
result |
An object which is the result of |
locations |
A vector indicating the locations (in Morgan) where to calculate the allele frequencies. |
progress_bar |
Displays a progress_bar if TRUE. Default value is FALSE |
a ggplot2 object
pop <- simulate_admixture(
module = ancestry_module(number_of_founders = 4),
pop_size = 1000,
total_runtime = 11)
require(ggplot2)
plot_frequencies(result = pop)