R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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(138900,136400,133900,130400,133200,132500,130400,132000,131400,133300,129700,129500,134257,133802,134542,132423,135853,135676,137311,139515,138554,139560,136171,137454,142388,143616,140197,148011,152637,152341,159219,161478,163350,166044,160925,163439,165411,160522,159302,151933,156735,156254,158051,157038,154626,153093,147274,150847,157165,157384,152655,154088,156583,156608,159543,162916,167167,172470,167473,164832,174144,177945,180962,179105,185076,183863,189329,191268,190450) > par4 = '12' > par3 = '' > par2 = 'Economagic' > par1 = 'USA Butter sales' > ylimmax = '' > ylimmin = '' > ylab = 'value' > xlab = 'index or time' > main = '' > postscript(file="/var/www/rcomp/tmp/1izpb1321352906.ps",horizontal=F,onefile=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/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/rcomp/tmp/28v651321352906.tab") > > try(system("convert tmp/1izpb1321352906.ps tmp/1izpb1321352906.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.652 0.100 0.733