R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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(100.34,100.21,100.44,101.59,102.44,103.1,103.34,103.44,103.35,103.67,104.13,104.27,104.75,104.82,104.69,104.87,104.74,104.85,104.8,104.13,104.02,104.46,105.58,106.94,108.41,109.05,108.75,108.96,108.46,107.51,107.27,106.72,108.94,112.02,112.46,113.56,113.64,114.13,116.44,117.71,117.57,117.25,117.33,117.36,117.18,117.21,117.44,117.54,119.07,118.5,118.69,118.38,118.45,117.88,118.52,118.26,118.39,117.87,118.36,117.91) > par4 = '12' > par3 = 'totale indexcijfer van katten- en hondenvoeding (blik, brokken en alu-schaaltje)' > par2 = 'Belgostat' > par1 = 'totale indexcijfer van katten- en hondenvoeding' > ylimmax = '' > ylimmin = '' > ylab = 'prijsindex (basisjaar=2004)' > xlab = 'maand (01/2006-12/2010)' > main = 'totale indexcijfer katten-&hondenvoeding' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: > #Technical description: > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 100.2 104.6 108.8 110.4 117.5 119.1 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1sua51329259747.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/22ksy1329259747.tab") > > try(system("convert tmp/1sua51329259747.ps tmp/1sua51329259747.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.485 0.094 0.569