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(2120,2100,2080,2040,2440,2420,2120,1920,1940,1940,1960,2000,2120,2080,2140,2240,2800,2800,2680,2560,2660,2780,2800,2860,3040,2920,2920,3100,3600,3640,3540,3300,3480,3480,3500,3600,3680,3720,3720,3840,4300,4420,4440,4140,4300,4240,4120,4380,4440,4340,4360,4500,5020,5280,5280,5160,5340,5160,5060,5440,5500,5360,5720,5860,6280,6560,6520,6500,6660,6640,6400,6760,6880,6760,7260,7500,8060,8280,8220,8100,8200,8320,7920,8240,8440,8360,8880,9060,9820,9960,9780,9880,9940,10000,9620,9980,10180,9980,10560,10740,11520,11640,11680,11880,11880,11960,11600,11780,11900,11680,12320,12440,13240,13380,13580,13760,13780,13800,13440,13800) > par4 = '12' > par3 = 'omzet fietsenwinkel' > par2 = 'niet gekend' > par1 = 'Omzet fietsenwinkel' > ylimmax = '' > ylimmin = '' > ylab = 'omzet (in euro)' > xlab = 'tijdspanne' > main = 'Omzet fietsenwinkel (in euro)' > par4 <- '12' > par3 <- 'omzet fietsenwinkel' > par2 <- 'niet gekend' > par1 <- 'Omzet fietsenwinkel' > #'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. 1920 3480 5400 6493 9790 13800 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/17n651343990326.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/2w6j61343990326.tab") > > try(system("convert tmp/17n651343990326.ps tmp/17n651343990326.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.710 0.126 0.827