plot.comparegeno: Plot genotype comparison
Description
Plot the results of the comparison of all pairs of individuals'
genotypes. A histogram of the proportion of matching genotypes, with
tick marks at individual values below, via rug
.
Usage
# S3 method for comparegeno
plot(x, breaks=NULL, main="",
xlab="Proportion matching genotypes", …)
Arguments
x
An object of class "comparegeno"
, as produced by
comparegeno
.
breaks
Passed to hist
, with the default
\(2 \sqrt{n}\) where \(n\) is the number of pairs of individuals.
xlab
x-axis label for the plot.
Details
Creates a histogram with hist
with ticks at
individual values using rug
.
Examples
Run this code# NOT RUN {
data(fake.f2)
cg <- comparegeno(fake.f2)
plot(cg)
# }
Run the code above in your browser using DataLab