# NOT RUN {
extdata_dir <- system.file(package="eaf", "extdata")
A1 <- read_datasets(file.path(extdata_dir, "ALG_1_dat.xz"))
A2 <- read_datasets(file.path(extdata_dir, "ALG_2_dat.xz"))
# }
# NOT RUN {
# These take time
eafdiffplot(A1, A2, full.eaf = TRUE)
eafdiffplot(A1, A2, type = "area")
eafdiffplot(A1, A2, type = "point", sci.notation = TRUE)
# }
# NOT RUN {
# A more complex example
a1 <- read_datasets(file.path(extdata_dir, "wrots_l100w10_dat"))
a2 <- read_datasets(file.path(extdata_dir, "wrots_l10w100_dat"))
DIFF <- eafdiffplot(a1, a2, col = c("white", "blue", "red"), intervals = 5,
type = "point",
title.left=expression("W-RoTS," ~ lambda==100 * "," ~ omega==10),
title.right=expression("W-RoTS," ~ lambda==10 * "," ~ omega==100),
right.panel.last={
abline(a = 0, b = 1, col = "red", lty = "dashed")})
DIFF$right[,3] <- -DIFF$right[,3]
## Save the values to a file.
# write.table(rbind(DIFF$left,DIFF$right),
# file = "wrots_l100w10_dat-wrots_l10w100_dat-diff.txt",
# quote = FALSE, row.names = FALSE, col.names = FALSE)
# }
Run the code above in your browser using DataLab