R version 2.13.0 (2011-04-13) Copyright (C) 2011 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. > y <- c(24.3,19,37.2,27.3,21.5,19.2,16.8,14.9,18.2,34.8,29.6,25.3,17.5,13.7,17.9,24.8,25.3,21.7,13.8,17.2,26.7,17.9,15.8,16.3,26.8,17.8,17.2,18.3,16.9,11.9,13.8,27.9,21.4,18.6,12.6,14.2,19.6,18.9,26.4,31.1,16.2,18.9,35.8,24.2,18.2,19.6,22.8,12,9,11,34.3,27.3,24.8,21,17.2,30,14,38.9,14.1,19.9) > x <- c(4.1,1.7,8,5,6,4.8,3.8,2.7,1,8.4,6.1,4.8,2.2,0.6,2.8,7.4,6.3,2.3,1.1,3.4,6.1,2.9,1.9,0.6,7.2,1.6,2.5,3.5,4,0.9,1.7,8.9,5.2,3.6,0.7,1.4,3.7,4.8,5.6,6.2,1.4,1.8,8.6,7.2,2.7,2.9,3.6,1.7,0.5,0.4,7.4,6.2,5.8,4.1,3.6,8.4,2.8,9,2.9,4.1) > par6 = 'Retail prices in importing Member countries in US cents per lb (Arabica, 1977/1 - 2006/12)' > par5 = 'www.ico.org' > par4 = 'bedrag' > par3 = 'Prices paid to growers in exporting Member countries in US cents per lb (Arabica, 1977/1 - 2006/12)' > par2 = 'www.ico.org' > par1 = 'afstand' > ylab = 'value' > xlab = 'index' > postscript(file="/var/wessaorg/rcomp/tmp/1ti711321355291.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > op <- par(mfrow=c(2,2)) > plot(x,type='b',main='Plot of x',xlab=xlab,ylab=ylab) > plot(y,type='b',main='Plot of y',xlab=xlab,ylab=ylab) > hist(x) > hist(y) > 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,'Bivariate Dataseries',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Name of dataseries x',header=TRUE) > a<-table.element(a,par1) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Source of x',header=TRUE) > a<-table.element(a,par2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Description of x',header=TRUE) > a<-table.element(a,par3) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Name of dataseries y',header=TRUE) > a<-table.element(a,par4) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Source of y',header=TRUE) > a<-table.element(a,par5) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Description of y',header=TRUE) > a<-table.element(a,par6) > 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/2wpai1321355291.tab") > > try(system("convert tmp/1ti711321355291.ps tmp/1ti711321355291.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.475 0.073 0.543