R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Copyright (C) 2016 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(29054.5,28543.5,28032,27009.5,37356,36844.5,29054.5,23881.5,24392.5,24392.5,24904,25982,22859,19731,17169.5,17169.5,27009.5,28032,20242,11429.5,16091.5,16091.5,19731,21831.5,21320,16091.5,18708.5,17681,26493.5,24392.5,16091.5,9891,15580,17169.5,18708.5,20753.5,16602.5,13019,14558,15069,28543.5,28543.5,20753.5,19731,22859,21320,25471,30644,31671.5,24392.5,22342.5,20242,34283.5,35311,32694,35311,34794.5,30644,35311,40484,42584.5,36333.5,32182.5,35311,48785,52936,51913.5,53958,53447,48274,57086.5,59187,62259.5,52936,49296.5,53447,63337.5,72150,70049.5,70049.5,71077,67488,76817,76817,75227.5,66410,67999.5,69027,75789.5,84602,78350.5,81479,78862,77328,89269,86652,83012.5,77839.5,83012.5,85629.5,88752.5,92903,88752.5,91314,88190.5,87679.5,100642.5,101720.5,97570,90291.5,96492,99104,102232,106894,102232,105871.5,104282,98592.5,110533,110533) > par4 = '12' > par3 = 'Maandelijkse omzet' > par2 = 'niet gekend' > par1 = 'Maandelijkse omzet stabilo kleurstiften' > ylimmax = '' > ylimmin = '' > ylab = 'Omzet EUR' > xlab = 'Maanden' > main = 'Maandelijkse omzet' > postscript(file="/var/wessaorg/rcomp/tmp/1e9iq1470769290.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 9891 23630 36590 50140 77460 110500 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/2y0zc1470769290.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() postscript 2 > > #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/3r5yx1470769290.tab") > > try(system("convert tmp/1e9iq1470769290.ps tmp/1e9iq1470769290.png",intern=TRUE)) character(0) > try(system("convert tmp/2y0zc1470769290.ps tmp/2y0zc1470769290.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.782 0.079 0.878