diff options
| author | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2018-11-24 00:48:00 +0000 |
|---|---|---|
| committer | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2018-11-24 00:48:00 +0000 |
| commit | 7f04bf71821481e4b838614e9e8e5c3629c7dbe6 (patch) | |
| tree | eb7dd0d6b0765479eae060e76340295bf4a03865 /code | |
| parent | 30f1fcb8868a3ee10db318d0344b58e21dc4da61 (diff) | |
added 1 of the plots
Diffstat (limited to 'code')
| -rw-r--r-- | code/rtt/rttplot.R | 12 |
1 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) + |
