R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree" Copyright (C) 2015 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(94.65,94.16,93.91,93.21,92.81,93.55,93.03,93.25,94.24,93.23,93.52,92.05,93.42,95.15,95.12,95.46,94.92,95.63,94.96,95.1,95.22,93.77,95.01,94.87,95.01,96.68,94.94,93.9,94.83,96.27,96.51,96.69,97.47,96.41,98.68,99.3,99.22,99.7,98,98.51,98.6,98.14,99.14,98.25,99.72,99.23,101.32,101.07,101.66,103.09,102.3,100.01,98.78,99.46,99.73,99.52,98.97,97.97,99.37,99.14,99.89,100.29,99.57,101.11,101.44,100.81,101.26,99.86,100.57,100.35,101.15,101.33,102.09,101.79,102.83,102.5,102.22,102.43,102.89,102.12,103.25,103.36,103.5,103.68) > par4 = '12' > par3 = '' > par2 = '' > par1 = '' > ylimmax = '' > ylimmin = '' > ylab = 'Prijs index' > xlab = 'Tijd maand (01/2009-12/2015)' > main = 'Consumptieprijsindex mineraalwater' > par4 <- '12' > par3 <- '' > par2 <- '' > par1 <- '' > #'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. 92.05 95.01 98.88 98.19 101.10 103.70 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1vkyl1458026162.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/2e0331458026162.tab") > > try(system("convert tmp/1vkyl1458026162.ps tmp/1vkyl1458026162.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.462 0.088 0.557