plot_chromosome: plot a chromosome

Description Usage Arguments Author(s) Examples

Description

This function plots a chromosome in the range [xmin, xmax]. Colors indicate different ancestry.

Usage

1
plot_chromosome(chrom, xmin, xmax)

Arguments

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.

Author(s)

Thijs Janzen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
wildpop =  create_population(pop_size = 100,
                             number_of_founders = 10,
                             total_runtime = 5,
                             morgan = 1,
                             seed = 42)

  isofemale <- create_iso_female(source_pop = wildpop,
                               n = 1,
                               inbreeding_pop_size = 100,
                               run_time = 100,
                               morgan = 1)

  plot_chromosome(isofemale[[1]]$chromosome1)
  plot_chromosome(isofemale[[1]]$chromosome1, xmin = 0.4, xmax = 0.6)

thijsjanzen/isoSIM documentation built on May 29, 2019, 10:39 a.m.