step_functions.R 374 B

123456789101112131415161718192021
  1. library("reshape2")
  2. library("plyr")
  3. library("ggplot2")
  4. for(i in (1:100)){
  5. filename = paste('bandwidth',i,'.csv', sep="")
  6. if(file.exists(filename)){
  7. bandwidth = read.csv(filename, header = TRUE)
  8. bw_plot = ggplot(data = bandwidth, aes(x=time, y=bytes, group=1)) + geom_line()
  9. png(filename=paste('bandwidth',i,'.png', sep=""))
  10. plot(bw_plot)
  11. dev.off
  12. }
  13. }