R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" 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(2473.01,2459.46,2452.08,2449.4,2474.45,2471.6,2426.57,2439.49,2417.83,2411.84,2416.73,2397.79,2346.18,2347.9,2366.47,2345.69,2327.51,2351.74,2352.07,2371.93,2350.64,2348.72,2369.35,2388.88,2380.43,2389.71,2370.22,2351.68,2350.44,2337.21,2343.99,2351.98,2340.44,2349.96,2336.22,2304.23,2241.6,2289.26,2274.84,2315.91,2287.37,2244.64,2179.33,2176.53,2186.76,2249.84,2293.07,2262.99,2229.85,2226.3,2220.34,2197.9,2216.32,2216.8,2194.31,2211.5,2242.88,2263.73,2267.24,2254.13,2227.63,2146.05,2139.61,2106.24,2107.44,2126.37,2143.09,2152.35,2149.97,2110.59,2118.95,2103.41,2093.32) > par4 = '12' > par3 = 'Laatste 72 indexcijfers van de BEL20-index' > par2 = 'http://www.nbb.be/belgostat/PublicatieSelectieLinker?LinkID=227000012|910000082&Lang=N' > par1 = 'BEL20' > ylimmax = '' > ylimmin = '' > ylab = 'value' > xlab = 'Tijd;nu-oud' > main = 'Univariate Data' > par4 <- '12' > par3 <- 'Laatste 72 indexcijfers van de BEL20-index' > par2 <- 'http://www.nbb.be/belgostat/PublicatieSelectieLinker?LinkID=227000012|910000082&Lang=N' > par1 <- 'BEL20' > #'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. 2093 2216 2304 2291 2366 2474 > n <- length(x) > postscript(file="/var/fisher/rcomp/tmp/178l71348512151.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/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/2cvyh1348512151.tab") > > try(system("convert tmp/178l71348512151.ps tmp/178l71348512151.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.895 0.138 1.013