Learn R Programming

DNAprofiles (version 0.3.1)

as.dbcompare: Convert output of ibs.pairwise.db for plotting using DNAtools package

Description

Convert output of ibs.pairwise.db for plotting using DNAtools package

Usage

as.dbcompare(m)

Arguments

m
Matrix with the number of full/partial matches (output of ibs.pairwise.db)

Value

Object of class dbcompare (compatible with DNAtools package)

Details

Converts the matrix to a dbcompare object for use with the plot function of the DNAtools package.

See Also

ibs.pairwise.db

Examples

Run this code
data(freqsNLsgmplus)
db <- sample.profiles(N=10^3,freqs=freqsNLsgmplus)
M <- as.dbcompare(ibs.pairwise.db(db))
## Not run: 
# require(DNAtools)
# plot(M)
# ## End(Not run)

Run the code above in your browser using DataLab