## Not run:
# # Open a connection to IRIS DMC webservices (including the BSS)
# iris <- new("IrisClient", debug=TRUE)
#
# starttime <- as.POSIXct("2013-06-01", tz="GMT")
# endtime <- starttime + 30*24*3600
# metricName <- "sample_max,sample_min,sample_mean"
#
# # Get the measurement dataframe
# juneStats <- getSingleValueMetrics(iris,"IU","ANMO","00","BHZ",
# starttime,endtime,metricName)
#
# # Simple ggplot2 plot
# library(ggplot2)
# p <- ggplot(juneStats, aes(x=starttime,y=value, color=as.factor(metricName))) +
# geom_step()
# print(p)
# ## End(Not run)
Run the code above in your browser using DataLab