Created
September 7, 2012 00:53
-
-
Save sckott/3662070 to your computer and use it in GitHub Desktop.
example of new phylomatic function - getting trees from R.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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