소스 검색

R script for generating step functions

cecylia 6 년 전
부모
커밋
3cdbfe63ed
1개의 변경된 파일21개의 추가작업 그리고 0개의 파일을 삭제
  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
+}
+
+}
+