View source: R/plot_chromosome.R
plot_chromosome | R Documentation |
This function plots a chromosome in the range [xmin, xmax]. Colors indicate different ancestry.
plot_chromosome(chrom, xmin = 0, xmax = 1)
chrom |
object of type chromosome, typically a table with two columns. The first column indicates the start of an ancestry block (location in Morgan), the second column indicates the ancestry type. |
xmin |
minimum value of the range, default = 0. |
xmax |
maximum value of the range, default = 1. |
No return value
wildpop = simulate_admixture(
module = ancestry_module(number_of_founders = 10, morgan = 1),
pop_size = 1000,
total_runtime = 10)
isofemale <- create_iso_female(
module = ancestry_module(input_population = wildpop,
morgan = 1),
n = 1,
inbreeding_pop_size = 100,
run_time = 10)
plot_chromosome(chrom = isofemale[[1]]$chromosome1)
# and a detail of the chromosome:
plot_chromosome(chrom = isofemale[[1]]$chromosome1,
xmin = 0.4,
xmax = 0.6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.