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. > y <- c(13,6.666666667,7,7.5,15.5,15,10.5,6,9,12,12,4.5,6,5.5,12,7,7,6,7,5,5,4.5,4.5,3.5,4.75,4.75,10,4,6,3,7,9,7,7,8,7,6,7,13,4,10,3,4.5,8.52,5.2,4,10.4,5,7.2,7.4,12,7.3,12.3,8,12.3,5.5,9,5.4,3.3,10) > x <- c(129.99,59.99,49.99,84.99,179.99,329.99,25.99,499.99,89.99,119.99,79.99,199.99,449.99,549.99,529.99,639.99,749.99,399.99,169.99,189.99,199.99,69.99,69.99,109.99,159.99,159.99,199.99,75,349.99,439.99,309.99,379.99,349.99,169.99,239.99,229.99,69.99,99.99,29.99,39.99,21.99,499.99,29.99,29.99,49.99,49.99,55.99,59.99,79.99,139.99,159.99,169.99,229.99,249.99,309.99,499.99,65.99,89.99,89.99,449.99) > par6 = '' > par5 = '' > par4 = 'Batterij(duur)' > par3 = '' > par2 = '' > par1 = 'Prijs' > ylab = 'value' > xlab = 'index' > postscript(file="/var/www/rcomp/tmp/12gqw1321899469.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/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,'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/www/rcomp/tmp/2eo031321899469.tab") > > try(system("convert tmp/12gqw1321899469.ps tmp/12gqw1321899469.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.556 0.100 0.642