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(115.31,113.69,115.3,113.68,114.35,113.27,113.79,113.97,113.54,114.82,113.65,113.23,115.35,113.5,115.32,114.22,113.91,113.7,113.78,114.97,114.73,115.27,114.08,112.95,113.11,112.93,111.89,111.97,109.53,110.28,111.43,110.03,111.24,109.98,109.87,109.66,109.38,109.27,109.14,108.9,108.4,109.23,110.07,109.76,108.33,108.65,109.39,108.83,108.55,107.9,108.01,107.83,105.87,106.25,106.53,106.31,107.8,106.59,104.88,105.88,105.2,103.52,102.95,103.43,102.44,102.77,104.4,105.41,108.07,106.29,107,105.28) > par4 = '12' > par3 = 'Indexcijfers van de consumptieprijzen per groep van producten: recreatie en cultuur' > par2 = 'BelgoStat' > par1 = 'Indexcijfers van de consumptieprijzen per groep van producten: recreatie en cultuur' > ylimmax = '' > ylimmin = '' > ylab = 'Prijs' > xlab = 'tijd' > main = 'Univariate Data' > par4 <- '12' > par3 <- 'Indexcijfers van de consumptieprijzen per groep van producten: recreatie en cultuur' > par2 <- 'BelgoStat' > par1 <- 'Indexcijfers van de consumptieprijzen per groep van producten: recreatie en cultuur' > #'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. 102.4 107.6 109.7 110.0 113.7 115.4 > n <- length(x) > postscript(file="/var/fisher/rcomp/tmp/1d9nl1359652256.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/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/212p31359652256.tab") > > try(system("convert tmp/1d9nl1359652256.ps tmp/1d9nl1359652256.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.861 0.215 1.069