Skip to content

Instantly share code, notes, and snippets.

@mtholder
Created May 2, 2017 16:10
Show Gist options
  • Select an option

  • Save mtholder/63e49fca523484e39b2f1e55a704d353 to your computer and use it in GitHub Desktop.

Select an option

Save mtholder/63e49fca523484e39b2f1e55a704d353 to your computer and use it in GitHub Desktop.
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