Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit 7e16304

Browse files
committed
adding side-by-side barplots for different schedulers
Signed-off-by: Athinagoras Skiadopoulos <askiad@stanford.edu>
1 parent 160c200 commit 7e16304

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

artifact/plot.r

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,13 +305,15 @@ savePlot(solverVariablesPlot, "solverVariablesPlot",
305305
podEventsWithParams <- merge(podEvents, params, by=c("expId"))
306306
podEventsBarPlot <- applyTheme(
307307
ggplot(podEventsWithParams,
308-
aes(x = event)) +
309-
geom_bar(stat="count", fill="brown") +
308+
aes(x = event, fill=scheduler)) +
309+
geom_bar(stat="count", position=position_dodge()) +
310310
scale_x_discrete(guide = guide_axis(angle = 45)) +
311-
geom_text(aes(label = ..count..), stat="count", vjust=0, colour="black") +
311+
geom_text(aes(label = ..count..), stat="count", vjust=0, colour="black",
312+
position=position_dodge(0.9)) +
312313
facet_grid(factor(paste(numNodes, "nodes"),
313314
levels = sapply(unique(numNodes), function(n) paste(n, "nodes")))
314-
~ scenario)
315+
~ scenario) +
316+
labs(fill = "", linetype = "")
315317
)
316318
savePlot(podEventsBarPlot, "podEventsBarPlot",
317319
0, params, plotHeight*2, plotWidth*2)

0 commit comments

Comments
 (0)