Make a star phylogeny using species names and, optionally, species weights.
star_phylogeny(x, weights = rep(1, length(x)))
x |
|
---|---|
weights |
|
phylo
tree object.
# create star phylogney with five species and equal weights p1 <- star_phylogeny(letters[1:5]) # plot the phylogenys plot(p1)# create star phylogeny with five species and varying weights p2 <- star_phylogeny(letters[1:5], weights = seq(1, 5)) # plot the phylogenys plot(p2)