drawLoci: Draw alleles for loci list.

Description Usage Arguments Details Author(s) Examples

Description

Draw loci and its corresponding alleles.

Usage

1

Arguments

x

List. Named list where names correspond to true loci names. Each element should hold unique allele values. At this time they are assumed to be coercable to integers.

Details

This function will take a list of loci alleles and plot it, where y axis represents loci and x axis represents allele "length". Function assumes allele names are coercable to numeric.

Author(s)

Roman Lustrik (roman.lustrik@biolitika.si)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# generate data
require(magrittr)
require(ggplot2)
al <- lapply(1:10, FUN = function(x) {
      runif(n = sample(x = 2:7, size = 1), min = 100, max = 300) %>%
      round()
  })

# add names to the list
names(al) <- paste("L", 1:length(al), sep = "")

fig.plotted <- drawLoci(al)

romunov/zvau documentation built on May 27, 2019, 1:50 p.m.