Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading a file that I did awhile ago. #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions R/exercise.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ GetTreeFromOpenTree_exercise <- function() {

# Replace the "__________" with appropriate arguments

anolis.id <- tnrs_match_names("__________")$ott_id
anolis.id <- tnrs_match_names("Anolis")$ott_id

# Now get Open Tree's current best estimate of the phylogeny for the group
# They call this the tree of life; we can get the subtree for just this group.
anolis.tree <- tol_subtree(ott_id=anolis.id)

# Let's plot the tree:
plot.phylo("__________", type="fan", cex=0.2)
plot.phylo("anolis.tree", type="fan", cex=0.2)

# It has a lot of polytomies, representing uncertainty. A maximally resolved
# tree (if rooted) will have one fewer internal nodes than terminal nodes:
Expand Down Expand Up @@ -49,7 +49,7 @@ GetTreeFromOpenTree_exercise <- function() {
# And let's get the tree from this study
# Look in rotl documentation for the right function
# Hint: get_study_trees() is close, but you don't know the tree.id
anolis.study1.tree1 <- get_______FUNCTION_FROM_rotl____(anolis.studies.ids)
anolis.study1.tree1 <- get_study(anolis.studies.ids)

# And plot it
plot.phylo(anolis.study1.tree1, type="fan", cex=0.2)
Expand All @@ -61,7 +61,7 @@ GetTreeFromOpenTree_exercise <- function() {
}



U1<-GetTreeFromOpenTree_exercise



Expand Down