plot.genotype: Plot genotype object

Description Usage Arguments Value Author(s) See Also Examples

Description

plot.genotype can plot genotype or allele frequency of a genotype object.

Usage

1
2
3
## S3 method for class 'genotype'
plot(x, type=c("genotype", "allele"),
  what=c("percentage", "number"), ...)

Arguments

x

genotype object, as genotype.

type

plot "genotype" or "allele" frequency, as character.

what

show "percentage" or "number", as character

...

Optional arguments for barplot.

Value

The same as in barplot.

Author(s)

Gregor Gorjanc

See Also

genotype, barplot

Examples

1
2
3
4
5
  set <- c("A/A", "A/B", "A/B", "B/B", "B/B", "B/B",
           "B/B", "B/C", "C/C", "C/C")
  set <- genotype(set, alleles=c("A", "B", "C"), reorder="yes")
  plot(set)
  plot(set, type="allele", what="number")

kindlychung/genetics documentation built on May 20, 2019, 9:58 a.m.