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(940,950,920,930,930,900,940,840,890,850,830,940,960,900,940,920,930,970,930,780,810,870,720,880,920,920,950,950,890,960,780,780,760,860,740,1020,890,1040,920,900,950,990,840,740,840,960,790,1010,900,970,920,980,890,1000,880,740,860,940,760,1010,870,980,920,950,880,980,910,730,880,820,690,990,800,960,910,950,940,1010,890,660,860,840,740,980,820,1080,930,970,930,1010,880,740,860,810,750,890,790,1000,890,970,900,990,910,730,850,840,830,950) > par4 = '12' > par3 = 'aantal bezoekers huis van alijn' > par2 = 'gegeven door school' > par1 = 'Aantal bezoekers Huis van Alijn' > ylimmax = '' > ylimmin = '' > ylab = 'Aantak bezoekers' > xlab = 'maanden jan 03/dec 011' > main = 'Aantal bezoekers huis van Alijn' > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 660.0 840.0 900.0 890.6 950.0 1080.0 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1q6s11343557630.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/2tgj61343557630.tab") > > try(system("convert tmp/1q6s11343557630.ps tmp/1q6s11343557630.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.717 0.149 0.879