diff options
author | Christoph Helma <helma@in-silico.ch> | 2019-10-28 15:56:23 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2019-10-28 15:56:23 +0100 |
commit | 5dbcec8d20b5f1fe3179877ea28cdb72d1e2ba38 (patch) | |
tree | 7de2379f76ad10db5164cf81fb663ea4d57fb973 /scripts/roc.R | |
parent | ebbd51ce117dc0f5912df6fa25fcce5cb7aaa5fe (diff) |
discussion, conclusion, abstract
Diffstat (limited to 'scripts/roc.R')
-rwxr-xr-x | scripts/roc.R | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/roc.R b/scripts/roc.R new file mode 100755 index 0000000..cb219fc --- /dev/null +++ b/scripts/roc.R @@ -0,0 +1,8 @@ +#!/usr/bin/env Rscript +library(ggplot2) +data <- read.csv("figures/results.csv",header=T) +p <- ggplot(data, aes(x=fpr, y=tpr)) + geom_abline() +p <- p + geom_label(label=rownames(data) ) +p <- p + expand_limits(x=c(0,1),y=c(0,1)) +p <- p + labs(x = "False positive rate", y = "True positive rate") +ggsave("figures/roc.png") |