R version 2.12.2 (2011-02-25) Copyright (C) 2011 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(10698,11514,13253,13807,13971,15548,17351,17409,17537,17704,17970,18004,18089,18479,18730,19169,19684,19785,20366,20506,20764,21382,21705,21725,21790,22205,22228,22397,22405,22414,22679,22780,22782,23843,23970,24319,24561,24693,25316,25591,25814,26105,26482,26887,27044,27071,27192,28029,28352,28806,29096,29133,29383,29462,29743,29965,30212,30364,31514,32034,32609,34777,35022,35338,35953,36438,36845,37702,37863,39690,41086,43129) > par4 = '12' > par3 = 'Inschrijvingen nieuwe wagens' > par2 = 'Excel' > par1 = 'Inschrijvingen nieuwe wagens' > ylimmax = '' > ylimmin = '' > ylab = 'Aantal inschrijvingen' > xlab = 'Maanden' > main = 'Inschrijvingen nieuwe wagens' > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 10700 20220 24440 25250 29530 43130 > n <- length(x) > postscript(file="/var/www/wessaorg/rcomp/tmp/1h89n1302184652.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/23nh61302184652.tab") > > try(system("convert tmp/1h89n1302184652.ps tmp/1h89n1302184652.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.470 0.130 0.598