R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(104.37,104.89,105.15,105.72,106.38,106.40,106.47,106.59,106.76,107.35,107.81,108.03,109.08,109.86,110.29,110.34,110.59,110.64,110.83,111.51,113.32,115.89,116.51,117.44,118.25,118.65,118.52,119.07,119.12,119.28,119.30,119.44,119.57,119.93,120.03,119.66,119.46,119.48,119.56,119.43,119.57,119.59,119.50,119.54,119.56,119.61,119.64,119.60,119.71,119.72,119.66,119.76,119.80,119.88,119.78,120.08,120.22) > par4 = '12' > par3 = 'De tijdreeks loopt van januari 2006 tot en met september 2010' > par2 = 'http://statbel.fgov.be/nl/binaries/CPI-2006-2010_tcm325-65942.xls' > par1 = 'De prijs van brood (Bruin brood 800g)' > ylimmax = '' > ylimmin = '' > ylab = 'indexprijzen' > xlab = 'maanden' > main = '' > #'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. 104.4 110.3 119.1 115.2 119.6 120.2 > n <- length(x) > postscript(file="/var/www/rcomp/tmp/1zwuo1292676914.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/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/rcomp/tmp/2v6sx1292676914.tab") > > try(system("convert tmp/1zwuo1292676914.ps tmp/1zwuo1292676914.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.390 0.260 0.659