R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Copyright (C) 2016 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(425.25,417.75,410.25,395.25,546.75,539.25,425.25,349.50,357.00,357.00,364.50,380.25,334.50,288.75,251.25,251.25,395.25,410.25,296.25,167.25,235.50,235.50,288.75,319.50,312.00,235.50,273.75,258.75,387.75,357.00,235.50,144.75,228.00,251.25,273.75,303.75,243.00,190.50,213.00,220.50,417.75,417.75,303.75,288.75,334.50,312.00,372.75,448.50,463.50,357.00,327.00,296.25,501.75,516.75,478.50,516.75,509.25,448.50,516.75,592.50,623.25,531.75,471.00,516.75,714.00,774.75,759.75,789.75,782.25,706.50,835.50,866.25,911.25,774.75,721.50,782.25,927.00,1056.00,1025.25,1025.25,1040.25,987.75,1124.25,1124.25,1101.00,972.00,995.25,1010.25,1109.25,1238.25,1146.75,1192.50,1154.25,1131.75,1306.50,1268.25,1215.00,1139.25,1215.00,1253.25,1299.00,1359.75,1299.00,1336.50,1290.75,1283.25,1473.00,1488.75,1428.00,1321.50,1412.25,1450.50,1496.25,1564.50,1496.25,1549.50,1526.25,1443.00,1617.75,1617.75) > par4 = '12' > par3 = 'Omzet van Mentos Aardbei per maand in euro.' > par2 = 'niet gekend' > par1 = 'Omzet Mentos Aardbei' > ylimmax = '' > ylimmin = '' > ylab = 'Omzet (euro)' > xlab = 'Tijd (maand)' > main = 'Univariate Data' > par4 <- '12' > par3 <- 'Omzet van Mentos Aardbei per maand in euro.' > par2 <- 'niet gekend' > par1 <- 'Omzet Mentos Aardbei' > #'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. 144.8 345.8 535.5 733.9 1134.0 1618.0 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1bs331470997121.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/22mob1470997121.tab") > > try(system("convert tmp/1bs331470997121.ps tmp/1bs331470997121.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.559 0.056 0.620