R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-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(101.71,101.67,101.73,102.00,102.29,102.48,102.60,102.68,102.76,102.80,102.64,102.70,102.81,102.83,103.17,103.21,102.84,102.93,103.05,103.07,103.18,103.14,103.41,103.48,103.57,103.60,103.64,103.68,103.43,103.46,103.50,103.57,103.72,103.81,103.82,104.06,104.11,104.43,104.58,104.72,104.02,104.11,104.22,104.28,104.37,104.38,104.41,104.58,104.60,104.66,104.66,104.64,104.87,105.00,105.02,105.04,105.07,105.12,105.30,105.42,105.48,105.54,105.64,105.54,105.93,106.06,106.05,106.15,106.17,106.34,105.63,105.64,105.64,105.66,105.50,105.60,105.24,105.40,105.51,105.51,105.56,105.57,105.69,105.76,105.82) > par4 = '12' > par3 = 'Hier zien we de aankoop van voertuigen in periode van 01/2006 tot 01/2013' > par2 = 'Link: http://statbel.fgov.be/nl/statistieken/cijfers/economie/consumptieprijzen/' > par1 = 'aankoop van voertuigen' > ylimmax = '' > ylimmin = '' > ylab = 'value' > xlab = 'index or time' > main = 'Univariate Data' > par4 <- '12' > par3 <- 'Hier zien we de aankoop van voertuigen in periode van 01/2006 tot 01/2013' > par2 <- 'Link: http://statbel.fgov.be/nl/statistieken/cijfers/economie/consumptieprijzen/' > par1 <- 'aankoop van voertuigen' > #'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. 101.7 103.2 104.4 104.3 105.5 106.3 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/17tzp1360011583.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/2z1uz1360011583.tab") > > try(system("convert tmp/17tzp1360011583.ps tmp/17tzp1360011583.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.881 0.156 1.017