-
Notifications
You must be signed in to change notification settings - Fork 3
/
figure-test-comparison.R
35 lines (22 loc) · 984 Bytes
/
figure-test-comparison.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
library(dplyr)
library(ggplot2)
library(data.table)
if(!file.exists("figure-test-comparison.csv"))
{
source("figure-test-comparison-data.R")
}
test.aum.dt.combined <- data.table::fread("figure-test-comparison.csv")
png("figure-test-auc-comparison.png", width = 26, height = 3, res = 200, units = "in")
ggplot(data = test.aum.dt.combined) +
geom_point(aes(x = `Test AUC`, y = algorithm), size = 5) +
#ggtitle(c(data.name, cv.type, test.fold)) +
facet_grid(.~data.name + new.test.fold, scales = "free") +
theme(panel.spacing=grid::unit(1, "cm"), text = element_text(size=25))
dev.off()
png("figure-test-aum-comparison.png", width = 26, height = 3, res = 200, units = "in")
ggplot(data = test.aum.dt.combined) +
geom_point(aes(x = `Test AUM`, y = algorithm), size = 5) +
#ggtitle(c(data.name, cv.type, test.fold)) +
facet_grid(.~data.name + new.test.fold, scales = "free") +
theme(panel.spacing=grid::unit(1, "cm"), text = element_text(size=25))
dev.off()