R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-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(3.53,3.39,2.96,2.93,2.87,2.65,2.3,1.7,1.66,1.41,1.69,1.99,0.21,-0.08,-0.25,0.44,0.44,0.76,0.3,-0.12,-0.15,-0.16,0.56,0.45) > x <- c(4.27,4.06,4.58,3.23,3.65,3.45,3.03,2.11,1.7,2,1.8,1.59,-0.2,0.3,1.5,-0.1,0.2,-0.1,-0.3,-0.6,0.1,0.6,0.31,-0.1) > par6 = 'inflation usa' > par5 = 'http://nl.inflation.eu/inflatiecijfers/verenigde-staten/actuele-cpi-inflatie-verenigde-staten.aspx' > par4 = 'usa' > par3 = 'inflation china' > par2 = 'http://nl.inflation.eu/inflatiecijfers/china/actuele-cpi-inflatie-china.aspx' > par1 = 'China' > ylab = 'value' > xlab = 'index' > postscript(file="/var/wessaorg/rcomp/tmp/1617d1352845040.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/2tn0q1352845040.tab") > > try(system("convert tmp/1617d1352845040.ps tmp/1617d1352845040.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.122 0.187 1.285