R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(586.202,523.136,511.540,524.915,556.756,553.725,573.282,529.892,508.306,488.091,470.617,485.309,555.666,496.990,485.102,498.366,529.230,526.534,545.496,503.524,483.295,464.569,447.858,462.065,506.091,505.810,527.868,523.437,530.101,563.465,510.430,495.608,517.241,517.753,487.342,537.400,506.545,534.554,515.823,513.105,529.079,568.315,539.594,536.638,536.822,541.323,526.262,559.748,526.401,544.358,532.919,574.865,567.433,568.984,99.86,100.05,100.05,99.31,101.64,101.59,101.36,102.03,101.43,100.00,100.04,102.89,105.96,110.16,111.37,110.37,109.72,108.85,108.31,109.04,110.42,110.52,110.56,109.63,108.93,108.20,107.73,107.01,107.15,107.07,108.54,108.08,107.23,105.81,105.56,104.80,103.90,103.91,104.86,103.32,102.53,103.48,103.86,103.09,101.21,99.23,97.87,96.68,95.15,95.20,94.65,93.08,93.18,94.43) > par3 = 'consumptie van sigaretten in dollars' > par2 = 'http://www.robjhyndman.com/TSDL/' > par1 = 'Sigarette consumption' > ylab = 'dollar' > xlab = 'time' > main = 'Consumption of sigarettes in dollar' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), 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: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > postscript(file="/var/www/html/freestat/rcomp/tmp/1yf191233672812.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(x,col=2,type='b',main=main,xlab=xlab,ylab=ylab) > dev.off() null device 1 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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/freestat/rcomp/tmp/2kgvp1233672812.tab") > > system("convert tmp/1yf191233672812.ps tmp/1yf191233672812.png") > > > proc.time() user system elapsed 0.548 0.238 0.634