Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.genotype

Plot genotype object


Description

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

Usage

## 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

Examples

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")

genetics

Population Genetics

v1.3.8.1.3
GPL
Authors
Gregory Warnes, with contributions from Gregor Gorjanc, Friedrich Leisch, and Michael Man.
Initial release
2012-11-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.