R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(35.36,31.19,35.29,33.80,36.38,37.77,34.88,37.07,35.56,34.18,32.05,32.35,34.79,33.75,33.76,36.80,36.57,34.14,33.85,35.10,33.92,33.34,30.69,32.32,32.47,34.71,37.19,35.58,36.04,35.63,32.74,33.31,28.40,27.37,28.20,29.23,28.05,27.70,28.05,28.01,30.73,30.82,30.48,30.92,31.20,31.41,31.96,36.95,35.64,37.18,38.69,39.97,40.36,40.79,42.92,41.21,44.15,44.70,47.42,45.14,46.08,50.59,48.63,47.46,47.30,49.02,51.77,54.15,56.10,52.58,52.56,51.27,57.72,53.46,55.48,59.33,57.32,56.44,58.80,55.64,53.62,54.87,56.15,55.35,52.38,51.27,53.95,56.09,56.34,60.65,58.35,57.18,58.87,66.20,62.25,62.62,54.73,56.20,52.54,63.06,63.53,60.95,53.83,51.20,44.57,44.15,44.04,42.28,38.42,35.41,37.01,39.19,46.50,44.79,47.01,49.15,50.85,54.09,55.40,56.16,54.37,52.34,56.13,51.29,42.95,28.88,38.47,34.83,41.17,40.80,40.00,44.00) > par4 = '12' > par3 = '' > par2 = 'Yahoo Finance' > par1 = 'Verloop aandeel BP (01/2000-12/2010)' > ylimmax = '' > ylimmin = '' > ylab = 'value' > xlab = 'index or time' > main = '' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: > #Technical description: > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 27.37 34.77 42.60 43.70 53.67 66.20 > n <- length(x) > postscript(file="/var/www/html/rcomp/tmp/1ec3g1293455582.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/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/www/html/rcomp/tmp/2a3j61293455582.tab") > > try(system("convert tmp/1ec3g1293455582.ps tmp/1ec3g1293455582.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.421 0.200 0.830