R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 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.3,18.6,18.7,20.1,18.9,20.1,19.8,15.9,19.9,19.6,15.6,14.2,13.6,13.9,15,14.1,13.5,15.3,14.7,12.5,16.1,15.9,15.9,15.7,14.7,15.3,18.4,16.8,16.5,19.3,17.1,15.7,19.1,18.6,18.4,17.1,18.3,19.4,22.3,19.4,21.3,20.3,19.3,17.5,19.9,19.6,19.7,18.1,19.1,20.7,22.5,20,20.2,20.4,19.6,18.1,19.3,21,19.9,17.7,19.4,19.3,21.5,20.9,20.8,20.3,21.4,17.4,21.1,22,20.4,19) > par4 = '12' > par3 = 'Maandelijkse uitvoer België (31/01/2008-31/12/2013) 2013 = BJ (in miljarden EUR)' > par2 = 'NBB' > par1 = 'Uitvoer België (in miljarden EUR)' > ylimmax = '' > ylimmin = '' > ylab = 'Uitvoer (in miljarden EUR)' > xlab = 'Jaar (01/01/2008-12/12/2013)' > main = 'Univariate Data' > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 12.50 16.40 19.05 18.33 20.02 22.50 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1d7md1412168553.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/2lfp31412168553.tab") > > try(system("convert tmp/1d7md1412168553.ps tmp/1d7md1412168553.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.602 0.086 0.685