H = hadamard(3)
v = 1:8
Hfhm(v)
data(yeast)
dat = as.character(yeast)
# RY-coding
dat[dat=="a" | dat=="g"] = "r"
dat[dat=="c" | dat=="t"] = "y"
dat = phyDat(dat, type="USER", levels=c("r","y"))
fit = h2st(dat)
# write.nexus.splits(fit, file = "test.nxs")
# read this file into Spectronet or Splitstree to show the network
Run the code above in your browser using DataLab