Make a star phylogeny using species names and, optionally, species weights.

star_phylogeny(x, weights = rep(1, length(x)))

Arguments

x

character vector of species names.

weights

numeric vector of weights. This must contain a value for each species. Defaults to assigning an equal weight for each species.

Value

phylo tree object.

See also

Examples

# 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)