summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Damani <kumar.damani@mail.utoronto.ca>2018-11-24 00:48:00 +0000
committerKumar Damani <kumar.damani@mail.utoronto.ca>2018-11-24 00:48:00 +0000
commit7f04bf71821481e4b838614e9e8e5c3629c7dbe6 (patch)
treeeb7dd0d6b0765479eae060e76340295bf4a03865
parent30f1fcb8868a3ee10db318d0344b58e21dc4da61 (diff)
added 1 of the plots
-rw-r--r--code/rtt/rttplot.R12
-rw-r--r--plots/rtt/numpak/r1.pngbin0 -> 27461 bytes
2 files changed, 12 insertions, 0 deletions
diff --git a/code/rtt/rttplot.R b/code/rtt/rttplot.R
new file mode 100644
index 0000000..1d9b871
--- /dev/null
+++ b/code/rtt/rttplot.R
@@ -0,0 +1,12 @@
+data = read.csv(file="../../data/rtt/numpak/r1est.csv", header=FALSE, sep=",")
+
+frame_number = log(data$V1)
+rtt_sample = data$V2
+rtt_est = data$V3
+
+plot(frame_number, rtt_sample, type="l", xlab="log_10 Frame numbers", ylab="time (s)", main="Num. Packets - Rank 1 - RTT Sample and RTT Estimate")
+lines(frame_number, rtt_est, col="blue")
+legend(13,0.15, legend=c("Sample", "Estimate"), col=c("black", "blue"), lty=1)
+
+dev.print(png, '../../plots/rtt/numpak/r1.png', width=500)
+
diff --git a/plots/rtt/numpak/r1.png b/plots/rtt/numpak/r1.png
new file mode 100644
index 0000000..4d435ac
--- /dev/null
+++ b/plots/rtt/numpak/r1.png
Binary files differ