tor_multipath_voip/r/thunder_configure.R

23 lines
741 B
R
Raw Normal View History

2019-09-14 14:26:57 +00:00
library(ggplot2)
library(sqldf)
library(plyr)
library(cowplot)
2019-09-16 06:54:22 +00:00
thunder_ms <- read.csv("thunder_configure_6.csv")
2019-09-14 17:15:22 +00:00
thunder_ms <- sqldf("select run,jmax,links,latency, CAST(latency as real) / 1000. as lat_ms from thunder_ms")
thunder_ms$links <- as.factor(thunder_ms$links)
thunder_ms$jmax <- as.factor(thunder_ms$jmax)
v1 <- ggplot(data = thunder_ms, aes(x = jmax, y=lat_ms, fill=links)) +
2019-09-15 13:31:10 +00:00
geom_boxplot() +
2019-09-14 17:15:22 +00:00
scale_fill_grey() +
ylim(0,1000) +
ylab("latency (ms)") +
xlab("max allowed jitter") +
theme_classic()
v1 + ggsave("thunder_configure_ms.png", dpi=300, dev='png', height=5, width=15, units="cm")
thunder_rcv <- sqldf("select run,jmax,links,(6000-COUNT(latency)*1.0)/6000 as dlv from thunder_ms group by jmax,links,run")