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(5670,5570,5470,5270,7290,7190,5670,4660,4760,4760,4860,5070,4460,3850,3350,3350,5270,5470,3950,2230,3140,3140,3850,4260,4160,3140,3650,3450,5170,4760,3140,1930,3040,3350,3650,4050,3240,2540,2840,2940,5570,5570,4050,3850,4460,4160,4970,5980,6180,4760,4360,3950,6690,6890,6380,6890,6790,5980,6890,7900,8310,7090,6280,6890,9520,10330,10130,10530,10430,9420,11140,11550,12150,10330,9620,10430,12360,14080,13670,13670,13870,13170,14990,14990,14680,12960,13270,13470,14790,16510,15290,15900,15390,15090,17420,16910,16200,15190,16200,16710,17320,18130,17320,17820,17210,17110,19640,19850,19040,17620,18830,19340,19950,20860,19950,20660,20350,19240,21570,21570) > par4 = '12' > par3 = '' > par2 = '' > par1 = '' > ylimmax = '' > ylimmin = '' > ylab = 'Omzet in EUR' > xlab = 'Maanden' > main = 'Omzet broodjeszaak "Smakelijk"' > par4 <- '12' > par3 <- '' > par2 <- '' > par1 <- '' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Plot of univariate data series (v1.0.4) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_univariatedataseries.wasp/ > #Source of accompanying publication: > # > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 1930 4610 7140 9785 15120 21570 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1yujy1342788454.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/2i3gv1342788454.tab") > > try(system("convert tmp/1yujy1342788454.ps tmp/1yujy1342788454.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.710 0.118 0.818