From 996a6cfa42fd842621d899961d788c96255d4ae5 Mon Sep 17 00:00:00 2001 From: Eugen Betke Date: Wed, 26 Aug 2020 12:36:58 +0200 Subject: [PATCH] Parameter name changes (min_sim -> sim_param) --- scripts/plot-performance-clustering.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/plot-performance-clustering.R b/scripts/plot-performance-clustering.R index 9315e33..4f1f615 100755 --- a/scripts/plot-performance-clustering.R +++ b/scripts/plot-performance-clustering.R @@ -7,8 +7,8 @@ require(scales) data = read.csv("datasets/clustering_progress.csv") -e = data %>% filter(min_sim %in% c(0.1, 0.5, 0.99)) -e$percent = paste("SIM =", as.factor(round(e$min_sim*100,0)), " %") +e = data %>% filter(sim_param %in% c(0.1, 0.5, 0.99)) +e$percent = paste("SIM =", as.factor(round(e$sim_param*100,0)), " %") # Development when adding more jobs ggplot(e, aes(x=jobs_done, y=elapsed, color=alg_name)) + geom_point() + facet_grid(percent ~ .) + ylab("Cummulative runtime in s") + xlab("Jobs processed") + scale_y_log10() + theme(legend.position = "bottom") @@ -16,6 +16,6 @@ ggsave("fig/runtime-cummulative.png", width=6, height=4.5) # Bar chart for the maximum e = data %>% filter(jobs_done >= (jobs_total - 9998)) -e$percent = as.factor(round(e$min_sim*100,0)) +e$percent = as.factor(round(e$sim_param*100,0)) ggplot(e, aes(y=elapsed, x=percent, fill=alg_name)) + geom_bar(stat="identity") + facet_grid(. ~ alg_name, switch = 'y') + scale_y_log10() + theme(legend.position = "none") + ylab("Runtime in s") + xlab("Minimum similarity in %") + geom_text(aes(label = round(elapsed,0), angle = 90, y=0*(elapsed)+20)) ggsave("fig/runtime-overview.png", width=7, height=2)