plot_over_time {GenomeAdmixR} | R Documentation |
Plot the frequencies of all ancestors over time
Description
This function plots the frequency of all ancestors over time at a specific location on the chromosome, after performing a simulation.
Usage
plot_over_time(frequencies, focal_location)
Arguments
frequencies |
A tibble containing four columns: |
focal_location |
Location (in Morgan) where to plot the allele frequencies. |
Value
a ggplot2 object
Examples
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)
[Package GenomeAdmixR version 2.1.7 Index]