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(251.17,244.27,240.54,238.92,237.47,235.91,235.91,231.41,224.94,222.19,219.06,217.83,217.83,216.89,213.84,212.9,213.98,215.31,215.31,214.09,213.71,211.54,209.4,207.33,207.33,202.75,200.26,198.99,198.82,198.43,198.43,195.68,195.45,193.65,191.38,189.71,189.71,185.49,183.01,182.38,181.6,182.13,182.13,180.81,180.25,179.84,178.5,178.11,178.11,178.1,177.52,177.34,175.53,176.01,175.94,175.47,175.48,173.76,173.74,173.65,172,171.5,170.41,171.5,171.43,170.69,170.4,169.9,170.21,170.55,169.98,169.34) > par4 = '12' > par3 = '' > par2 = '' > par1 = 'Gigit' > ylimmax = '' > ylimmin = '' > ylab = 'value' > xlab = 'index or time' > main = 'Univariate Data' > par4 <- '12' > par3 <- '' > par2 <- '' > par1 <- 'Gigit' > #'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. 169.3 175.8 189.7 195.5 213.9 251.2 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1ga1o1411114262.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/28zi61411114262.tab") > > try(system("convert tmp/1ga1o1411114262.ps tmp/1ga1o1411114262.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.512 0.115 0.628