# Create a single random ranked tree with 5 tips
rankedPhylo(5)
# Create multiple random ranked trees with 5 tips
rankedPhylo(c(5,5,5))
# Convert a coalescent tree into a ranked tree
x = ape::rcoal(5) # random coalescent tree
rankedPhylo(x)
Run the code above in your browser using DataLab