x <- c(5.06,5.05,5.05,5.04,5.06,5.07,5.09,5.08,5.09,5.09,5.09,5.1,5.12,5.14,5.14,5.14,5.13,5.15,5.16,5.17,5.17,5.18,5.21,5.19,5.22,5.24,5.21,5.24,5.28,5.3,5.32,5.32,5.29,5.3,5.32,5.31,5.35,5.36,5.33,5.35,5.35,5.35,5.37,5.39,5.4,5.39,5.4,5.4,5.4,5.38,5.32,5.36,5.35,5.39,5.4,5.41,5.36,5.38,5.41,5.35,5.4,5.41,5.42,5.41,5.41,5.42,5.4,5.42,5.41,5.34,5.46,5.45,5.47,5.48,5.43,5.5,5.51,5.51,5.52,5.55,5.55,5.48,5.61,5.59,5.68,5.71,5.68,5.7,5.76,5.78,5.77,5.85,5.82,5.84,5.89,5.84)
par4 = '12'
par3 = 'Gemiddelde consumptieprijs Bordeaux'
par2 = 'http://www.nbb.be/belgostat/PresentationLinker?Order=true&TableId=696000055&Lang=N&prop=null'
par1 = 'Gemiddelde consumptieprijzen wijn: Bordeaux supérieur AOC 75 cl'
ylimmax = as.numeric(8)
ylimmin = as.numeric(0)
ylab = '€ (euro's per specifieke eenheid)'
xlab = 'Tijdsindicatie (maand)'
main = 'Bordeaux supérieur AOC 75 cl'
par4 <- '12'
par3 <- 'Gemiddelde consumptieprijs Bordeaux'
par2 <- 'http://www.nbb.be/belgostat/PresentationLinker?Order=true&TableId=696000055&Lang=N&prop=null'
par1 <- 'Gemiddelde consumptieprijzen wijn: Bordeaux supérieur AOC 75 cl'
#'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)
n <- length(x)
postscript(file="/var/wessaorg/rcomp/tmp/1ld5v1411301716.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()

#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/2jhv11411301716.tab") 

try(system("convert tmp/1ld5v1411301716.ps tmp/1ld5v1411301716.png",intern=TRUE))

