R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing 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(611.22 + ,613.36 + ,592.49 + ,528.18 + ,525.3 + ,474 + ,485 + ,510 + ,523.54 + ,525 + ,516.6 + ,526.31 + ,535 + ,545.7 + ,525.25 + ,526.42 + ,576.2 + ,593 + ,582.07 + ,570.22 + ,572.8 + ,600.55 + ,610 + ,620.03 + ,623.34 + ,610.16 + ,603.6 + ,607.57 + ,626.06 + ,614.8 + ,596.48 + ,632.05 + ,628.01 + ,621.88 + ,627.64 + ,579.37 + ,587.76 + ,608 + ,593.32 + ,595.09 + ,586.72 + ,583.72 + ,525.18 + ,509.85 + ,527.25 + ,540.35 + ,517.96 + ,510.8 + ,534.56 + ,504 + ,553.43 + ,562.98 + ,582.54 + ,650.02 + ,624.99 + ,585.99 + ,579.98 + ,599.33 + ,605.91 + ,604.64 + ,609.90 + ,621.25 + ,600.25 + ,625.04 + ,642.59 + ,641.24 + ,632.32 + ,624.60 + ,596.06 + ,614.98 + ,596.97 + ,605.23 + ,600.40 + ,591.53 + ,570.98 + ,580.45 + ,564.51 + ,571.48 + ,580.07 + ,585.98 + ,576.52 + ,610.82 + ,634.96 + ,641.33 + ,642.00 + ,677.14 + ,678.63 + ,685.09 + ,706.15 + ,709.68 + ,733.99 + ,754.50 + ,767.65 + ,744.75 + ,681.79 + ,675.15 + ,687.92 + ,687.92 + ,663.03 + ,647.18 + ,667.97 + ,698.37 + ,684.21 + ,701.96 + ,715.63 + ,700.01 + ,737.97 + ,739.99 + ,704.51 + ,753.67 + ,775.60 + ,785.37 + ,792.89 + ,799.71 + ,806.19 + ,831.52 + ,814.30 + ,810.31 + ,794.19 + ,783.05 + ,790.05 + ,799.87 + ,801.42 + ,845.72 + ,880.23 + ,909.18 + ,873.32 + ,871.22 + ,879.73 + ,875.04 + ,880.93 + ,880.37 + ,893.49 + ,923.00 + ,896.60 + ,885.35 + ,906.57 + ,890.41 + ,856.91 + ,870.21 + ,846.90 + ,879.58 + ,889.07 + ,903.11 + ,876.39 + ,872.35 + ,871.99 + ,1011.41 + ,1015.20 + ,1027.04 + ,1016.03 + ,1033.56 + ,1031.89 + ,1059.59 + ,1069.87 + ,1060.79 + ,1100.62 + ,1118.40 + ,1105.00) > par4 = '12' > par3 = '' > par2 = '' > par1 = '' > ylimmax = '' > ylimmin = '' > ylab = 'Price' > xlab = 'week' > main = 'GOOG WEEKLY CLOSE' > 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. 474.0 587.2 635.0 699.9 803.8 1118.0 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1jib01392553734.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/2wtj61392553734.tab") > > try(system("convert tmp/1jib01392553734.ps tmp/1jib01392553734.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.386 0.285 1.650