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

Commit

Permalink
adding side-by-side barplots for different schedulers
Browse files Browse the repository at this point in the history
Signed-off-by: Athinagoras Skiadopoulos <[email protected]>
  • Loading branch information
askiad committed Nov 20, 2021
1 parent 160c200 commit 7e16304
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions artifact/plot.r
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,15 @@ savePlot(solverVariablesPlot, "solverVariablesPlot",
podEventsWithParams <- merge(podEvents, params, by=c("expId"))
podEventsBarPlot <- applyTheme(
ggplot(podEventsWithParams,
aes(x = event)) +
geom_bar(stat="count", fill="brown") +
aes(x = event, fill=scheduler)) +
geom_bar(stat="count", position=position_dodge()) +
scale_x_discrete(guide = guide_axis(angle = 45)) +
geom_text(aes(label = ..count..), stat="count", vjust=0, colour="black") +
geom_text(aes(label = ..count..), stat="count", vjust=0, colour="black",
position=position_dodge(0.9)) +
facet_grid(factor(paste(numNodes, "nodes"),
levels = sapply(unique(numNodes), function(n) paste(n, "nodes")))
~ scenario)
~ scenario) +
labs(fill = "", linetype = "")
)
savePlot(podEventsBarPlot, "podEventsBarPlot",
0, params, plotHeight*2, plotWidth*2)
Expand Down

0 comments on commit 7e16304

Please sign in to comment.