R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree" 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(109.12,109.12,109.73,112.59,112.59,112.29,113.8,114.16,112.29,112.29,110.99,110.99,110.99,110.99,111.98,114.26,114.26,114.44,115.47,115.41,114.63,116.48,115.8,115.18,115.18,115.18,115.18,116.38,122.41,122.47,123.09,123.09,123.09,123.09,121.77,121.52,121.52,121.52,121.52,124.73,125.23,124.62,128.94,129.34,127.17,128.08,124.54,121.21,120.85,119.02,119.13,119.84,125.53,124.16,127.32,127.22,122.57,125.45,125.45,127.32,128.79,128.99,129.8,130.33,131.19,132.02,136.97,139.45,128.31,130.73,129.83,125.46,130.23,130.23,132.65,136.34,139.12,133.94,143.09,142.71,136.09,134.57,134.65,134.35) > par4 = '12' > par3 = 'Consumentenprijsindex ontwikkeling attractieparken' > par2 = 'CBS' > par1 = 'Consumentenprijsindex ontwikkeling attractieparken' > ylimmax = '' > ylimmin = '' > ylab = 'value' > xlab = 'index or time' > 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. 109.1 115.2 123.1 123.0 129.1 143.1 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1ecz71455307469.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/2usfh1455307469.tab") > > try(system("convert tmp/1ecz71455307469.ps tmp/1ecz71455307469.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.532 0.125 0.651