read.nexus.splits
, write.nexus.splits
, read.nexus.networx
, write.nexus.networx
can be used to import and export splits and networks with nexus format
and allow to exchange these object with other software like Splitstree.
write.splits
returns a human readable output.
read.nexus.splits(file)write.nexus.splits(obj, file = "", weights = NULL, taxa = TRUE,
append = FALSE)
write.nexus.networx(obj, file = "", taxa = TRUE, splits = TRUE,
append = FALSE)
read.nexus.networx(file, splits = TRUE)
write.splits(x, file = "", zero.print = ".", one.print = "|",
print.labels = TRUE, ...)
a file name.
An object of class splits.
Edge weights.
logical. If TRUE a taxa block is added
logical. If TRUE the nexus blocks will be added to a file.
logical. If TRUE the nexus blocks will be added to a file.
An object of class splits.
character which should be printed for zeros.
character which should be printed for ones.
logical. If TRUE labels are printed.
Further arguments passed to or from other methods.
names of taxa.
write.nexus.splits
and write.nexus.networx
write out
the splits
and networx
object to read with
other software like Splitstree.
read.nexus.splits
and read.nexus.networx
return an splits
and networx
object.
# NOT RUN {
(sp <- as.splits(rtree(5)))
write.nexus.splits(sp)
spl <- allCircularSplits(5)
plot(as.networx(spl), "2D")
write.splits(spl, print.labels = FALSE)
# }
Run the code above in your browser using DataLab