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