R version 3.0.1 (2013-05-16) -- "Good Sport" Copyright (C) 2013 The R Foundation for Statistical Computing 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(1165010 + ,1160665 + ,1156265 + ,1147162.5 + ,1237238.75 + ,1232481.25 + ,1165010 + ,1120157.5 + ,1124488.75 + ,1124488.75 + ,1129328.75 + ,1138005 + ,1151507.5 + ,1151507.5 + ,1142831.25 + ,1120157.5 + ,1237238.75 + ,1255086.25 + ,1228136.25 + ,1165010 + ,1192015 + ,1151507.5 + ,1169781.25 + ,1178512.5 + ,1187615 + ,1165010 + ,1169781.25 + ,1138005 + ,1237238.75 + ,1268588.75 + ,1241638.75 + ,1192015 + ,1245983.75 + ,1187615 + ,1241638.75 + ,1237238.75 + ,1250755 + ,1201131.25 + ,1255086.25 + ,1250755 + ,1331715 + ,1313441.25 + ,1241638.75 + ,1205462.5 + ,1255086.25 + ,1187615 + ,1237238.75 + ,1245983.75 + ,1264257.5 + ,1223805 + ,1245983.75 + ,1259486.25 + ,1309110 + ,1268588.75 + ,1214633.75 + ,1156265 + ,1210288.75 + ,1061788.75 + ,1133660 + ,1174112.5 + ,1214633.75 + ,1156265 + ,1156265 + ,1156265 + ,1187615 + ,1142831.25 + ,1084036.25 + ,1034838.75 + ,1070533.75 + ,931205 + ,1016578.75 + ,1066188.75 + ,1075305 + ,1025681.25 + ,1030012.5 + ,1016578.75 + ,1061788.75 + ,1030012.5 + ,967381.25 + ,922102.5 + ,998662.5 + ,832383.75 + ,940362.5 + ,989560 + ,989560 + ,931205 + ,877236.25 + ,872905 + ,922102.5 + ,877236.25 + ,791931.25 + ,733136.25 + ,796276.25 + ,647831.25 + ,782760 + ,854562.5 + ,877236.25 + ,827626.25 + ,764926.25 + ,809778.75 + ,827626.25 + ,814110 + ,679126.25 + ,616481.25 + ,661278.75 + ,526350 + ,665678.75 + ,715302.5 + ,755755 + ,688283.75 + ,625157.5 + ,661278.75 + ,679126.25 + ,643431.25 + ,508502.5 + ,449707.5 + ,503676.25 + ,355231.25 + ,517178.75 + ,616481.25) > par4 = '12' > par3 = 'Omzetcijfers jan/03 - dec/12' > par2 = 'Fictief' > par1 = 'Omzet AB Inbev in EUR' > ylimmax = '' > ylimmin = '' > ylab = 'Euro' > xlab = 'Tijd in maanden' > main = 'Omzetcijfers AB Inbev' > par4 <- '12' > par3 <- 'Omzetcijfers jan/03 - dec/12' > par2 <- 'Fictief' > par1 <- 'Omzet AB Inbev in EUR' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Plot of univariate data series (v1.0.4) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_univariatedataseries.wasp/ > #Source of accompanying publication: > # > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 355200 868300 1131000 1025000 1202000 1332000 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1ziom1376988075.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > if (par4=='No season') { + plot(x,col=2,type='b',main=main,xlab=xlab,ylab=ylab,xaxt='n') + axis(1,at=seq(1,n,10)) + } > if (par4!='No season') { + plot(x,col=2,type='b',main=main,xlab=xlab,ylab=ylab,xaxt='n') + axis(1,at=seq(1,n,par4)) + grid(nx=0,ny=NULL,col='black') + abline(v=seq(1,n,par4),col='black',lty='dotted') + } > dev.off() null device 1 > > #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,'Univariate Dataseries',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Name of dataseries',header=TRUE) > a<-table.element(a,par1) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Source',header=TRUE) > a<-table.element(a,par2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Description',header=TRUE) > a<-table.element(a,par3) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Number of observations',header=TRUE) > a<-table.element(a,length(x)) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/28emk1376988075.tab") > > try(system("convert tmp/1ziom1376988075.ps tmp/1ziom1376988075.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.368 0.377 1.712