Skip to content

Commit ba960b8

Browse files
committed
Merge pull request #128 from eleostech/master
Use labs() instead of opts() to support R v3.1.0
2 parents 4553933 + 8c1493e commit ba960b8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

priv/summary.r

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ latency_plot <- ggplot(b$latencies, aes(x = elapsed)) +
6969
labs(x = "Elapsed Secs", y = "Latency (ms)")
7070

7171
# Plot median, mean and 95th percentiles
72-
plot2 <- latency_plot + opts(title = "Mean, Median, and 95th Percentile Latency") +
72+
plot2 <- latency_plot + labs(title = "Mean, Median, and 95th Percentile Latency") +
7373
geom_smooth(aes(y = median, color = "median"), size=0.5) +
7474
geom_point(aes(y = median, color = "median"), size=2.0) +
7575

@@ -85,7 +85,7 @@ plot2 <- latency_plot + opts(title = "Mean, Median, and 95th Percentile Latency"
8585
# labels = c("95th", "Mean", "Median"))
8686

8787
# Plot 99th percentile
88-
plot3 <- latency_plot + opts(title = "99th Percentile Latency") +
88+
plot3 <- latency_plot + labs(title = "99th Percentile Latency") +
8989
geom_smooth(aes(y = X99th, color = "99th"), size=0.5) +
9090
geom_point(aes(y = X99th, color = "99th"), size=2.0) +
9191
scale_colour_manual("Percentile", values = c("#FF665F", "#009D91"))
@@ -94,13 +94,13 @@ plot3 <- latency_plot + opts(title = "99th Percentile Latency") +
9494
# labels = c("99.9th", "99th"))
9595

9696
# Plot 99.9th percentile
97-
plot4 <- latency_plot + opts(title = "99.9th Percentile Latency") +
97+
plot4 <- latency_plot + labs(title = "99.9th Percentile Latency") +
9898
geom_smooth(aes(y = X99_9th, color = "99.9th"), size=0.5) +
9999
geom_point(aes(y = X99_9th, color = "99.9th"), size=2.0) +
100100
scale_colour_manual("Percentile", values = c("#FF665F", "#009D91", "#FFA700"))
101101

102102
# Plot 100th percentile
103-
plot5 <- latency_plot + opts(title = "Maximum Latency") +
103+
plot5 <- latency_plot + labs(title = "Maximum Latency") +
104104
geom_smooth(aes(y = max, color = "max"), size=0.5) +
105105
geom_point(aes(y = max, color = "max"), size=2.0) +
106106
scale_colour_manual("Percentile", values = c("#FF665F", "#009D91", "#FFA700"))

0 commit comments

Comments
 (0)