R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 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(1.5469,1.5501,1.5494,1.5475,1.5449,1.5391,1.5578,1.5528,1.5496,1.549,1.5449,1.5479,1.5494,1.558,1.5691,1.5748,1.5564,1.5601,1.5687,1.5775,1.5841,1.5898,1.5922,1.5969,1.6155,1.6212,1.6124,1.6375,1.6506,1.6543,1.6567,1.6383,1.6475,1.6706,1.6485,1.6592,1.6203,1.608,1.572,1.5964,1.6247,1.6139,1.6193,1.6212,1.5942,1.5194,1.5162,1.5393,1.4935,1.4904,1.5083,1.5147,1.5118,1.5148,1.5202,1.5236,1.5148,1.5138,1.5105,1.502,1.4765,1.4671,1.4482,1.4337,1.4181,1.3767,1.346,1.3413,1.3089,1.3452,1.3442,1.2811,1.2779,1.2974,1.2867,1.2977,1.2537,1.2092,1.1766,1.1203,1.2005,1.2295,1.2307,1.2276,1.2108,1.2071,1.2061,1.2023,1.2012,1.2011,1.2011,1.2011,1.2089,1.2098,1.2052,1.2091,1.2288,1.2298,1.2266,1.2199,1.2418,1.2322,1.2366,1.2338,1.2338,1.2316,1.2316,1.2245) > par4 = '12' > par3 = '' > par2 = '' > par1 = '' > ylimmax = '' > ylimmin = '' > ylab = 'value' > xlab = 'index or time' > main = 'Univariate Data' > 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. 1.120 1.233 1.513 1.435 1.570 1.671 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1k71v1423474718.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/29ubj1423474718.tab") > > try(system("convert tmp/1k71v1423474718.ps tmp/1k71v1423474718.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.555 0.085 0.639