haplotype {pegas}R Documentation

Haplotype Extraction and Frequencies

Description

haplotype extracts the haplotypes from a set of DNA sequences. The result can be plotted with the appropriate function.

Usage

haplotype(x)
## S3 method for class 'haplotype':
plot(x, ...)

Arguments

x a set of DNA sequences (as an object of class "DNAbin", or an object of class "haplotype".
... further arguments passed to barplot.

Value

haplotype returns an object of class c("haplotype", "DNAbin") which is an object of class "DNAbin" with an attribute "index" identifying the index of each observation that share the same haplotype.

Author(s)

Emmanuel Paradis

See Also

DNAbin for manipulation of DNA sequences in R.


[Package pegas version 0.1 Index]