Skip to content

Commit

Permalink
Merge pull request basho#128 from eleostech/master
Browse files Browse the repository at this point in the history
Use labs() instead of opts() to support R v3.1.0
  • Loading branch information
slfritchie committed Jun 30, 2014
2 parents 4553933 + 8c1493e commit ba960b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions priv/summary.r
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ latency_plot <- ggplot(b$latencies, aes(x = elapsed)) +
labs(x = "Elapsed Secs", y = "Latency (ms)")

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

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

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

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

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

0 comments on commit ba960b8

Please sign in to comment.