R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing 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(97.5,98.61,101.34,103.89,105.42,106.56,106.96,107.65,107.95,107.71,106.25,104.37,104.69,104.39,104.59,104.78,105.03,105.01,105.01,105.67,106.08,106.74,101.34,100.86,100.98,103.23,104.48,105.88,105.76,105.44,105.44,105.24,105.42,105.26,101.19,99.82,100.77,102.48,103.95,106.34,107.17,107.03,107.16,107.17,108.65,109.07,104.02,104.13,104.51,105.61,106.08,110.05,111.01,110.95,110.95,110.96,111.24,109.78,106.8,105.82,106.42,107.63,107.89,108.55,109.91,110.17,110.38,110.41,110.58,109.49,108.08,107.7,107.72,108.51,108.55,110.3,111.4,111.95,112.32,112.53,112.51,112.78,111.53,110.24,110.4,110.24,112.25,113.27,113.96,114.36,114.43,115.18,116.68,117.83,114.69,113.33) > par4 = '12' > par3 = 'Indexcijfers van de consumptieprijzen per product: apparaten en toebehoren,inclusief reparaties - spelen, speelgoed en hobby ' > par2 = 'belgostate' > par1 = 'Scrabble' > ylimmax = '' > ylimmin = '' > ylab = 'value' > xlab = 'index or time' > main = 'Scrabble' > par4 <- '12' > par3 <- 'Indexcijfers van de consumptieprijzen per product: apparaten en toebehoren,inclusief reparaties - spelen, speelgoed en hobby ' > par2 <- 'belgostate' > par1 <- 'Scrabble' > #'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. 97.5 105.0 107.2 107.6 110.4 117.8 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/137fg1380887785.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/2c7bs1380887785.tab") > > try(system("convert tmp/137fg1380887785.ps tmp/137fg1380887785.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.224 0.274 1.465