Skip to content

Instantly share code, notes, and snippets.

@sckott
Created September 7, 2012 00:53
Show Gist options
  • Save sckott/3662070 to your computer and use it in GitHub Desktop.
Save sckott/3662070 to your computer and use it in GitHub Desktop.
example of new phylomatic function - getting trees from R.
# Example of new phylomatic
install_github('taxize_', 'ropensci', branch="phylomatic_fix")
library(taxize)
dat_ <- c("Amylotheca_subumbellata","Impatiens_davidi","Gonocarpus_leptothecus","Calochortus_argillosus","Gagea_sarmentosa","Lilium_lankongense","Cephalanthera_rubra","Bicuiba_oleifera","Guatteria_dolichopoda","Iteadaphne_caudata")
tree <- get_phylomatic_tree(taxa = dat_)
> tree
Phylogenetic tree with 10 tips and 9 internal nodes.
Tip labels:
Amylotheca_subumbellata, Impatiens_davidi, Gonocarpus_leptothecus, Calochortus_argillosus, Gagea_sarmentosa, Lilium_lankongense, ...
Rooted; no branch lengths.
plot(tree)
Here's the output image:
https://raw.github.com/SChamberlain/work/master/other/Rplot.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment