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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
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
| #' | |
| #' This does some basic filtering of the ecoevojobs list to narrow down jobs. | |
| #' Much of the filtering is based on two text files, one containing locations | |
| #' to filter for (`locations.txt`), and the other for institutions to filter | |
| #' for (`institutions.txt`). | |
| #' Each of these have items separated by newlines. | |
| #' For example, the top of `locations.txt` might look like this: | |
| #' ``` | |
| #' Alabama |
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
| #' | |
| #' Add outgroup to phylogenetic tree. | |
| #' The tree must be ultrametric. | |
| #' | |
| #' `tree`: a `phylo` object | |
| #' `taxon_name`: name of the taxon to add; should be a single string | |
| #' `divergence` total divergence time between a species inside `tree` and the outgroup, | |
| #' in whatever units branchlengths in `tree` are in | |
| #' | |
| add_outgroup <- function(tree, taxon_name, divergence) { |
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
| library(ggplot2) | |
| library(dplyr) | |
| library(grid) | |
| sd_before <- 10 | |
| sd_after <- 3 | |
| mean_before <- 30 | |
| mean_after <- 10 | |
| df <- data_frame(trait = rep(seq(0, 60, length.out = 100), 2)) %>% |