R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: x86_64-pc-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(100.76,101.22,101.24,101.49,101.51,101.53,101.53,101.62,101.62,101.87,101.77,101.82,101.82,102.36,103.69,104.03,104.59,104.59,104.59,104.92,105.08,105.45,105.48,105.56,105.56,106.14,106.69,106.84,107.03,106.83,106.83,106.97,107.16,108.02,108.19,108.26,108.26,109.37,110.02,110.78,110.84,111.38,111.38,111.31,111.54,111.55,111.63,111.64,111.64,111.74,111.55,111.26,111.28,111.29,111.29,111.24,111.39,111.41,111.42,111.43,111.43,111.85,112.96,113.59,113.98,113.68,113.68,113.67,114.36,114.62,114.69,114.8) > par4 = '12' > par3 = 'Indexcijfers van de consumptieprijzen per product: aankoop van voertuigen - fietsen (Indexcijfers jaar 2004=100) ' > par2 = 'Belgostat ' > par1 = 'Indexcijfers van de consumptieprijzen per product: aankoop van voertuigen - fietsen (Indexcijfers jaar 2004=100)' > ylimmax = '' > ylimmin = '' > ylab = 'consumptieprijs (index jaar 2004=100)' > xlab = 'maanden' > main = 'Indexcijfers kinderfiets (jaar 2004=100)' > par4 <- '12' > par3 <- 'Indexcijfers van de consumptieprijzen per product: aankoop van voertuigen - fietsen (Indexcijfers jaar 2004=100) ' > par2 <- 'Belgostat ' > par1 <- 'Indexcijfers van de consumptieprijzen per product: aankoop van voertuigen - fietsen (Indexcijfers jaar 2004=100)' > #'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. 100.8 104.6 108.3 108.1 111.5 114.8 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/13v1y1411225117.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/2odj81411225117.tab") > > try(system("convert tmp/13v1y1411225117.ps tmp/13v1y1411225117.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.539 0.112 0.644