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(95320.00 + ,94965.00 + ,94605.00 + ,93860.00 + ,101230.00 + ,100840.00 + ,95320.00 + ,91650.00 + ,92005.00 + ,92005.00 + ,92400.00 + ,93110.00 + ,94215.00 + ,94215.00 + ,93505.00 + ,91650.00 + ,101230.00 + ,102690.00 + ,100485.00 + ,95320.00 + ,97530.00 + ,94215.00 + ,95710.00 + ,96425.00 + ,97170.00 + ,95320.00 + ,95710.00 + ,93110.00 + ,101230.00 + ,103795.00 + ,101590.00 + ,97530.00 + ,101945.00 + ,97170.00 + ,101590.00 + ,101230.00 + ,102335.00 + ,98275.00 + ,102690.00 + ,102335.00 + ,108960.00 + ,107465.00 + ,101590.00 + ,98630.00 + ,102690.00 + ,97170.00 + ,101230.00 + ,101945.00 + ,103440.00 + ,100130.00 + ,101945.00 + ,103050.00 + ,107110.00 + ,103795.00 + ,99380.00 + ,94605.00 + ,99025.00 + ,86875.00 + ,92755.00 + ,96065.00 + ,99380.00 + ,94605.00 + ,94605.00 + ,94605.00 + ,97170.00 + ,93505.00 + ,88695.00 + ,84670.00 + ,87590.00 + ,76190.00 + ,83175.00 + ,87235.00 + ,87980.00 + ,83920.00 + ,84275.00 + ,83175.00 + ,86875.00 + ,84275.00 + ,79150.00 + ,75445.00 + ,81710.00 + ,68105.00 + ,76940.00 + ,80965.00 + ,80965.00 + ,76190.00 + ,71775.00 + ,71420.00 + ,75445.00 + ,71775.00 + ,64795.00 + ,59985.00 + ,65150.00 + ,53005.00 + ,64045.00 + ,69920.00 + ,71775.00 + ,67715.00 + ,62585.00 + ,66255.00 + ,67715.00 + ,66610.00 + ,55565.00 + ,50440.00 + ,54105.00 + ,43065.00 + ,54465.00 + ,58525.00 + ,61835.00 + ,56315.00 + ,51150.00 + ,54105.00 + ,55565.00 + ,52645.00 + ,41605.00 + ,36795.00 + ,41210.00 + ,29065.00 + ,42315.00 + ,50440.00) > par4 = '12' > par3 = 'omzet product theebuitljes ' > par2 = 'niet gekend' > par1 = 'omzet product theebuiltjes' > ylimmax = '' > ylimmin = '' > ylab = 'omzet (euro)' > xlab = 'maanden (01-2005t/m 12-2014)' > main = 'omzet theebuiltjes' > par4 <- '12' > par3 <- 'omzet product theebuitljes ' > par2 <- 'niet gekend' > par1 <- 'omzet product theebuiltjes' > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 29060 71040 92580 83880 98360 109000 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1v3ct1439802692.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/267r51439802692.tab") > > try(system("convert tmp/1v3ct1439802692.ps tmp/1v3ct1439802692.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.552 0.129 0.663