library(ape)
# example tree in NH format (a string)
data("landplants.newick")
landplants.newick
# get corresponding phylo object
tree.landplants <- read.tree(text = landplants.newick)
# plot tree
plot(tree.landplants, label.offset = 0.001)
Run the code above in your browser using DataCamp Workspace