predicted <- data.frame(sample = sample(10, 100, replace = TRUE),
label = rep(c("Healthy", "Cancer"), each = 50))
actual <- factor(rep(c("Healthy", "Cancer"), each = 5))
result1 <- ClassifyResult("Example", "Differential Expression", "t-test",
LETTERS[1:10], LETTERS[10:1], list(1:100), list(sample(10, 10)),
list(predicted), actual, list("fold", 100, 5))
predicted[, "label"] <- sample(predicted[, "label"])
result2 <- ClassifyResult("Example", "Differential Variability", "F-test",
LETTERS[1:10], LETTERS[10:1], list(1:100), list(sample(10, 10)),
list(predicted), actual, validation = list("leave", 1))
wholePlot <- errorMap(list(Gene = result1, Protein = result2))
# if(require(ggplot2))
# ggsave("wholePlot.png", wholePlot)
Run the code above in your browser using DataLab