R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-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(-18.5,-17.9,-19.8,-13.1,-16.5,-1.8,-9.3,-14.4,-9,-10.1,-11.7,-9.6,-9.9,0.2,-9.9,-12.4,-10.2,-8.2,-8.7,-5.7,-6.5,-5.7,-7.7,-8.4,-9.4,-13.6,-6.9,-15.6,-17.1,-19.7,-22.1,-25.2,-31.7,-35.7,-48.8,-44.3,-40.6,-43.7,-43,-40.1,-33.9,-28.7,-33.3,-28.4,-15.5,-17.1,-19.9,-16,-14.6,-12.5,-13.3,-16.6,-15.5,-9.3,-8.6,-15.8,-21.4,-21,-13.2,-3.3,-6.9,0.4,1.2,2,-1.2,-4.6,-9.1,-13,-18.2,-13.2,-18.3,-16.4,-12,-13.1,-20,-8.2,-13.8,-17.9,-17,-16.8,-23.3,-27.9,-22.2,-19.1,-16.6,-4.2,-20.8,-20.3,-19.4,-6.4,-15.2,-11,-1.3,-10.2,-1.3,-3.1,2.8,4.4,3.7,-3.9,-9,-11.1,-9.3,-12.4,-9.3,-7.5,-4.4,-1.4) > par4 = '12' > par3 = 'Conjunctuurenquetes textielnijverheid' > par2 = 'NBB' > par1 = 'Textielnijverheid' > ylimmax = '' > ylimmin = '' > ylab = 'aantal enquetes' > xlab = 'maand' > main = 'Conjunctuurenquetes textielnijverheid' > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. -48.80 -18.65 -13.10 -14.41 -8.20 4.40 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1z28o1443600806.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/2nbkj1443600806.tab") > > try(system("convert tmp/1z28o1443600806.ps tmp/1z28o1443600806.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.522 0.085 0.604