Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit e82c696

Browse files
committed
De-science scales, needed due to ms -> us scale change
1 parent a5f9185 commit e82c696

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

metrics/report/report_dockerfile/tidy_scaling_nc.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
suppressMessages(suppressWarnings(library(ggplot2))) # ability to plot nicely.
99
suppressMessages(library(jsonlite)) # to load the data.
10+
suppressMessages(library(scales)) # For de-science notation of axis
1011
library(tibble) # tibbles for tidy data
1112

1213
testnames=c(
@@ -77,12 +78,12 @@ for (currentdir in resultdirs) {
7778

7879
if (length(latencydata[[1]]) <= 20 && perc_count == 5) {
7980
# Use boxplot when there are not too many boxes to draw
80-
latp = ggplot(data=latencydata, aes(x=n_pods)) + ylab("Latency (ms)") + xlab("pods")
81+
latp = ggplot(data=latencydata, aes(x=n_pods)) + ylab("Latency (us)") + xlab("pods") + scale_y_continuous(labels=comma)
8182
p=names(ltpt)[2:6]
8283
latp = latp + geom_boxplot(aes_string(group="interaction(testname,n_pods)",ymin=p[1],lower=p[2],middle=p[3],upper=p[4],ymax=p[5],fill="testname"),stat="identity")
8384
} else {
8485
# Use colored areas and median lines when there are many ticks on X axis
85-
latp = ggplot(data=latencydata, aes(x=n_pods)) + ylab("Latency (ms)") + xlab("pods")
86+
latp = ggplot(data=latencydata, aes(x=n_pods)) + ylab("Latency (us)") + xlab("pods") + scale_y_continuous(labels=comma)
8687
perc_mid = floor((perc_count)/2)
8788
perc_maxdist = perc_mid
8889
plot_number = 0

0 commit comments

Comments
 (0)