R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: i686-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(59.8,60.7,59.7,60.2,61.3,59.8,61.2,59.3,59.4,63.1,68,69.4,70.2,72.6,72.1,69.7,71.5,75.7,76,76.4,83.8,86.2,88.5,95.9,103.1,113.5,115.7,113.1,112.7,121.9,120.3,108.7,102.8,83.4,79.4,77.8,85.7,83.2,82,86.9,95.7,97.9,89.3,91.5,86.8,91,93.8,96.8,95.7,91.4,88.7,88.2,87.7,89.5,95.6,100.5,106.3,112,117.7,125,132.4,138.1,134.7,136.7,134.3,131.6,129.8,131.9,129.8,119.4,116.7,112.8,116,117.5,118.8,118.7,116.3,115.2,131.7,133.7,132.5,126.9,122.2,120.2) > par4 = '12' > par3 = '' > par2 = '' > par1 = 'Prijsindexcijfers van de levensmiddelen' > ylimmax = '' > ylimmin = '' > ylab = 'prijsindexcijfer' > xlab = '31/01/06 - 31/12/12 (per maand)' > main = 'Prijsindexcijfers van levensmiddelen' > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 59.30 79.00 95.70 97.97 118.00 138.10 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1cue21388402331.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/22aiq1388402331.tab") > > try(system("convert tmp/1cue21388402331.ps tmp/1cue21388402331.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.077 0.444 2.459