Created
May 2, 2017 16:10
-
-
Save mtholder/63e49fca523484e39b2f1e55a704d353 to your computer and use it in GitHub Desktop.
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
| d = read.table('times_num_studies.tsv', header=TRUE, sep="\t"); | |
| print(d); | |
| dt = as.POSIXct(d$time, origin="1970-01-01"); | |
| print(dt); | |
| pdf("ot-time-series.pdf"); | |
| plot(dt, d$num_phyle_studies, | |
| xlab="Date", ylab="num studies", | |
| ylim=c(0, max(d$num_phyle_studies)), | |
| type="l", | |
| col=1); | |
| lines(dt, d$num_synth_trees, col=2); | |
| legend(min(dt), | |
| max(d$num_phyle_studies), | |
| c("total # studies in phylesystem", "# trees used in synth"), | |
| lty=c(1,1), | |
| col=c(1, 2)) | |
| dev.off(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment