I have a custom tree of extinct taxa in the form of an newick file. I want to use R to create a figure of said tree with the each node having the matching period of time. Does anyone know how to do this?
I have a custom tree of extinct taxa in the form of an newick file. I want to use R to create a figure of said tree with the each node having the matching period of time. Does anyone know how to do this?
You can use the package ape to load the newick tree a plot it.
For example:
## Loading the tree
my_tree <- ape::read.tree("path_to_your_tree")
## Plotting the tree
plot(my_tree)
## Adding a scale bar
ape::axisPhylo()
For more fancy plots, I suggest you have an in depth look at the functions in ape, ggtree or strap (for nice geological time scales).