Browse Source

R script for generating step functions

cecylia 6 years ago
parent
commit
3cdbfe63ed
1 changed files with 21 additions and 0 deletions
  1. 21 0
      client/tests/step_functions.R

+ 21 - 0
client/tests/step_functions.R

@@ -0,0 +1,21 @@
+library("reshape2")
+library("plyr")
+library("ggplot2")
+
+for(i in (1:100)){
+  
+filename = paste('bandwidth',i,'.csv', sep="")
+
+if(file.exists(filename)){
+
+  bandwidth = read.csv(filename, header = TRUE)
+  
+  bw_plot = ggplot(data = bandwidth, aes(x=time, y=bytes, group=1)) + geom_line()
+  
+  png(filename=paste('bandwidth',i,'.png', sep=""))
+  plot(bw_plot)
+  dev.off
+}
+
+}
+