R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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(2036.71,2149.1,2123.99,2204.91,2488.92,2572.98,2701.54,2717.79,2646.43,2711.94,2634.01,2613.94,2636.87,2649.24,2579.39,2504.58,2462.32,2467.38,2446.66,2656.32,2626.15,2482.6,2539.91,2502.66,2466.92,2513.17,2443.27,2293.41,2070.83,2029.6,2052.02,1864.44,1670.07,1810.99,1905.41,1862.83,2014.45,2197.82,2962.34,3047.03,3032.6,3504.37,3801.06,3857.62,3674.4,3720.98,3844.49,4116.68,4105.18,4435.23,4296.49,4202.52,4562.84,4621.4,4696.96,4591.27,4356.98,4502.64,4443.91,4290.89) > par4 = '12' > par3 = '' > par2 = 'Nationale Bank van België' > par1 = 'Bel-20' > ylimmax = '' > ylimmin = '' > ylab = 'Euro' > xlab = 'Tijd' > main = '' > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 1670 2406 2630 2967 3812 4697 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1jzbz1324299713.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/2glr51324299713.tab") > > try(system("convert tmp/1jzbz1324299713.ps tmp/1jzbz1324299713.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.526 0.079 0.601