R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-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(27.72,26.90,25.86,26.81,26.31,27.10,27.00,27.40,27.27,28.29,30.01,31.41,31.91,31.60,31.84,33.05,32.06,33.10,32.23,31.36,31.09,30.77,31.20,31.47,31.73,32.17,31.47,30.97,30.81,30.72,28.24,28.09,29.11,29.00,28.76,28.75,28.45,29.34,26.84,23.70,23.15,21.71,20.88,20.04,21.09,21.92,20.72,20.72,21.01,21.80,21.60,20.38,21.20,19.87,19.05,20.01,19.15,19.43,19.44,19.40,19.15,19.34,19.10,19.08,18.05,17.72,18.58,18.96,18.98,18.81,19.43,20.93,20.71,22.00,21.52,21.87,23.29,22.59,22.86,20.79,20.28,20.62,20.32,21.66,21.99,22.27,21.83,21.94,20.91,20.40,20.22,19.64,19.75,19.51,19.52,19.48,19.88,18.97,19.00,19.32,19.50,23.22,22.56,21.94,21.11,21.21,21.18,21.25,21.17,20.47,19.99,19.21,20.07,19.86,22.36,22.17,23.56,22.92,23.10,24.32,23.99,25.94,26.15,26.36,27.32,28.00) > par4 = '4' > par3 = 'Facebook' > par2 = '' > par1 = 'Facebook' > ylimmax = '' > ylimmin = '' > ylab = '$' > xlab = 'Businessday' > main = 'Facebook' > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 17.72 20.05 21.93 23.77 27.38 33.10 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1om341356015602.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/2uikz1356015603.tab") > > try(system("convert tmp/1om341356015602.ps tmp/1om341356015602.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.215 0.396 2.616