R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-redhat-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(30790,30800,31025,30835,31110,31270,31090,30755,31460,32135,32680,32700,32515,32275,32200,31835,31985,31875,31795,32260,33255,33160,32195,33130,33950,34210,33855,33735,34175,34265,33915,33660,33720,33810,33590,33545,33660,33165,33800,33880,33975,33930,33905,33890,33640,34395,34245,33940,34295,33745,33535,33715,33600,34120,34330,34130,33755,32910,32910,32850,32780,32565,31905,31975,31380,31355,31440,30310,31410,31300,31070,31075,31815) > par20 = '' > par19 = '' > par18 = '' > par17 = '' > par16 = '' > par15 = '' > par14 = '' > par13 = '' > par12 = '' > par11 = '' > par10 = '' > par9 = '' > par8 = '' > par7 = '' > par6 = '' > par5 = '' > par4 = '12' > par3 = 'Dagcijfers van goudkoers te Brussel in EUR/kg; Startdatum: 25-10-2010; Einddatum: 4/2/2011; Tijdsinterval: Dag' > par2 = 'http://www.nbb.be/belgostat/PresentationLinker?TableId=751000059&Lang=N' > par1 = 'Evolutie goudkoers (EUR/kg)' > ylimmax = '' > ylimmin = '' > ylab = '' > xlab = '' > main = '' > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 30310 31820 32910 32770 33810 34400 > n <- length(x) > postscript(file="/var/www/wessaorg/rcomp/tmp/1hbz11297686132.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/www/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/www/wessaorg/rcomp/tmp/2hxk51297686132.tab") > > try(system("convert tmp/1hbz11297686132.ps tmp/1hbz11297686132.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.53 0.06 0.59