View source: R/plot_over_time.R
plot_over_time | R Documentation |
This function plots the frequency of all ancestors over time at a specific location on the chromosome, after performing a simulation.
plot_over_time(frequencies, focal_location)
frequencies |
A tibble containing four columns: |
focal_location |
Location (in Morgan) where to plot the allele frequencies. |
a ggplot2 object
pop <- simulate_admixture( module = ancestry_module(number_of_founders = 10, markers = 0.5), pop_size = 1000, total_runtime = 11) require(ggplot2) plot_over_time(frequencies = pop$frequencies, focal_location = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.