File: plot.genotype.Rd

package info (click to toggle)
r-cran-genetics 1.3.8.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 572 kB
  • sloc: sh: 19; makefile: 6
file content (40 lines) | stat: -rw-r--r-- 893 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
\name{plot.genotype}

\alias{plot.genotype}

\title{Plot genotype object}

\description{
  \code{plot.genotype} can plot genotype or allele frequency of a genotype
  object.
}

\usage{
\method{plot}{genotype}(x, type=c("genotype", "allele"),
  what=c("percentage", "number"), ...)
}

\arguments{
  \item{x}{genotype object, as genotype.}
  \item{type}{plot "genotype" or "allele" frequency, as character.}
  \item{what}{show "percentage" or "number", as character}
  \item{\dots}{Optional arguments for \code{barplot}.}
}

\value{
  The same as in \code{barplot}.
}

\author{ Gregor Gorjanc }

\seealso{ \code{\link{genotype}}, \code{\link{barplot}} }

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

\keyword{hplot}