R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(14915,11773,11608,11468,11511,11200,11164,10960,10667,11556,11372,12333,13102,11115,12572,11557,12059,11420,11185,11113,10706,11523,11391,12634,13469,11735,13281,11968,11623,11084,11509,11134,10438,11530,11491,13093,13106,11305,13113,12203,11309,11088,11234,11619,10942,11445,11291,13281,13726,11300,11983,11092,11093,10692,10786,11166,10553,11103,10969,12090,12544,12264,13783,11214,11453,10883,10381,10348,10024,10805,10796,11907,12261,11377,12689,11474,10992,10764,12164,10409,10398,10349,10865,11630,12221,10884,12019,11021,10799,10423,10484,10450,9906,11049,11281,12485,12849,11380,12079,11366,11328,10444,10854,10434,10137,10992,10906,12367,14371,11695,11546,10922,10670,10254,10573,10239,10253,11176,10719,11817,12487,11519,12025,10976,11276,10657,11141,10423,10640,11426,10948,12540,12200,10644,12044,11338,11292,10612,10995,10686,10635,11285,11475,12535) > par2 = '0' > par1 = '0' > par2 <- '0' > par1 <- '0' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Univariate Explorative Data Analysis (v1.0.9) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_edauni.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > # > par1 <- as.numeric(par1) > par2 <- as.numeric(par2) > x <- as.ts(x) > library(lattice) > postscript(file="/var/wessaorg/rcomp/tmp/1vz5x1353866707.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(x,type='l',main='Run Sequence Plot',xlab='time or index',ylab='value') > grid() > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/24ql71353866707.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > hist(x) > grid() > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/3jyri1353866707.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > if (par1 > 0) + { + densityplot(~x,col='black',main=paste('Density Plot bw = ',par1),bw=par1) + } else { + densityplot(~x,col='black',main='Density Plot') + } > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/4ghfu1353866707.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > qqnorm(x) > qqline(x) > grid() > dev.off() null device 1 > if (par2 > 0) + { + postscript(file="/var/wessaorg/rcomp/tmp/5lbzk1353866707.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) + dum <- cbind(lag(x,k=1),x) + dum + dum1 <- dum[2:length(x),] + dum1 + z <- as.data.frame(dum1) + z + plot(z,main='Lag plot (k=1), lowess, and regression line') + lines(lowess(z)) + abline(lm(z)) + dev.off() + if (par2 > 1) { + postscript(file="/var/wessaorg/rcomp/tmp/682my1353866707.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) + dum <- cbind(lag(x,k=par2),x) + dum + dum1 <- dum[(par2+1):length(x),] + dum1 + z <- as.data.frame(dum1) + z + mylagtitle <- 'Lag plot (k=' + mylagtitle <- paste(mylagtitle,par2,sep='') + mylagtitle <- paste(mylagtitle,'), and lowess',sep='') + plot(z,main=mylagtitle) + lines(lowess(z)) + dev.off() + } + postscript(file="/var/wessaorg/rcomp/tmp/7qg3e1353866707.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) + acf(x,lag.max=par2,main='Autocorrelation Function') + grid() + dev.off() + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 9906 10840 11290 11440 11920 14920 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Descriptive Statistics',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'# observations',header=TRUE) > a<-table.element(a,length(x)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'minimum',header=TRUE) > a<-table.element(a,min(x)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Q1',header=TRUE) > a<-table.element(a,quantile(x,0.25)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'median',header=TRUE) > a<-table.element(a,median(x)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'mean',header=TRUE) > a<-table.element(a,mean(x)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Q3',header=TRUE) > a<-table.element(a,quantile(x,0.75)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'maximum',header=TRUE) > a<-table.element(a,max(x)) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/8t0vk1353866707.tab") > > try(system("convert tmp/1vz5x1353866707.ps tmp/1vz5x1353866707.png",intern=TRUE)) character(0) > try(system("convert tmp/24ql71353866707.ps tmp/24ql71353866707.png",intern=TRUE)) character(0) > try(system("convert tmp/3jyri1353866707.ps tmp/3jyri1353866707.png",intern=TRUE)) character(0) > try(system("convert tmp/4ghfu1353866707.ps tmp/4ghfu1353866707.png",intern=TRUE)) character(0) > try(system("convert tmp/5lbzk1353866707.ps tmp/5lbzk1353866707.png",intern=TRUE)) convert: unable to open image `tmp/5lbzk1353866707.ps': @ error/blob.c/OpenBlob/2587. convert: missing an image filename `tmp/5lbzk1353866707.png' @ error/convert.c/ConvertImageCommand/3011. character(0) attr(,"status") [1] 1 Warning message: running command 'convert tmp/5lbzk1353866707.ps tmp/5lbzk1353866707.png' had status 1 > try(system("convert tmp/682my1353866707.ps tmp/682my1353866707.png",intern=TRUE)) convert: unable to open image `tmp/682my1353866707.ps': @ error/blob.c/OpenBlob/2587. convert: missing an image filename `tmp/682my1353866707.png' @ error/convert.c/ConvertImageCommand/3011. character(0) attr(,"status") [1] 1 Warning message: running command 'convert tmp/682my1353866707.ps tmp/682my1353866707.png' had status 1 > try(system("convert tmp/7qg3e1353866707.ps tmp/7qg3e1353866707.png",intern=TRUE)) convert: unable to open image `tmp/7qg3e1353866707.ps': @ error/blob.c/OpenBlob/2587. convert: missing an image filename `tmp/7qg3e1353866707.png' @ error/convert.c/ConvertImageCommand/3011. character(0) attr(,"status") [1] 1 Warning message: running command 'convert tmp/7qg3e1353866707.ps tmp/7qg3e1353866707.png' had status 1 > > > proc.time() user system elapsed 3.276 0.685 3.966