barcode.gap {sidier} | R Documentation |
Barcode gap identification
Description
Identifies barcode gaps based on representing intra- and interspecific distances. Species above the 1:1 line are considered to show a barcode gap.
Usage
barcode.gap(summary=NULL,stat.intra="max",stat.inter="min",
xlab=NULL, ylab=NULL, legend=TRUE, lab.nodes="nogap")
Arguments
summary |
a list produced by |
stat.intra |
a string, the inter-specific statistic used to estimate the quotient interspecific/intraspecific. Accepted values are "max", "min", "median", and "mean" |
stat.inter |
a string, the inter-specific statistic used to estimate the quotient interspecific/intraspecific. Accepted values are "max", "min", "median", and "mean". |
xlab |
a string, the x-axis label |
ylab |
a string, the y-axis label |
legend |
a logic, to show information about species showing and lacking barcode within the plot |
lab.nodes |
a string to select the name of species to be represented in the plot: "gap" to represent species showing barcode gap; "nogap" to represent species lacking barcode gap; "all" for representing all species names. Other value will represent no names. |
Value
A list with two elements:
no.barcode.gap |
a matrix containing the name of the species lacking barcode gap and their mean intra- and interspecific distances. |
barcode.gap |
a matrix containing the name of the species showing barcode gap and their mean intra- and interspecific distances. |
Author(s)
A.J. Muñoz-Pajares
See Also
Examples
# my.dist<-matrix(abs(rnorm(100)),ncol=10,
# dimnames=list(paste("sp",rep(1:5,2),sep=""),
# paste("sp",rep(1:5,2),sep="")))
# my.dist<-as.matrix(as.dist(my.dist))
# sum<-barcode.summary(my.dist)
# barcode.gap(sum)