sort.nex: Sort a nexus file

View source: R/sort.nex.R

sort.nexR Documentation

Sort a nexus file

Description

Sort a nexus file

Usage

## S3 method for class 'nex'
sort(x, decreasing = FALSE, by = c("taxlabels", "charlabels"), ...)

Arguments

x

nexus object

decreasing

whether to sort in decreasing order

by

sorting by

...

other arguments passed to sort

Examples

## Not run: 
data(twig)
twig.sorted <- sort(twig, by="taxlabels")
plot(twig.sorted)

## End(Not run)


celiason/phenotools documentation built on Sept. 29, 2024, 5:43 p.m.