Changes between Version 9 and Version 10 of GIMIv1.1Tutorial/Analyze


Ignore:
Timestamp:
10/23/12 21:57:19 (7 years ago)
Author:
zink@cs.umass.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIMIv1.1Tutorial/Analyze

    v9 v10  
    3333limited to these two methods, we simply use them for demonstration purposes.
    3434
    35 === G.1 R Scrips ===
     35=== G.1 R Scripts ===
     36
     37One potential way to visualize the data is making use of [http://www.r-project.org/ R], which provides a visualization language.
     38For this tutorial, we have create a set of R script, which we briefly discuss in the following.
     39
     40The first [http://emmy9.casa.umass.edu/GEC15-GIMI-Tutorial/R_script_ping.r script] creates a plot of the RTTs for each ping that's carried out in the experiment. The following code snipped shows part of the R script that is used to plot a single ping (to 192.168.2.10).
     41
     42{{{
     43library(RSQLite)
     44con <- dbConnect(dbDriver("SQLite"), dbname = "gimi30-ping_all.sq3")
     45dbListTables(con)
     46dbReadTable(con,"pingmonitor_myping")
     47mydata <- dbGetQuery(con, "select dest_addr,rtt from pingmonitor_myping where dest_addr='192.168.4.10'")
     48rtt <- mydata$rtt
     49pdf("gimi31_ping1.pdf")
     50plot(rtt,type="o",col="red",xlab="Experiment Interval",ylab="RTT (ms)")
     51title(main="Ping Experiment to IP address 192.168.4.10", col.main="blue", font.main=4)
     52}}}
     53
     54
     55
    3656
    3757----