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(29,44,36,37,53,68,75,18,31,25,34,14,11,11,22,16,27,9,29,30,40,32,41,147,22,29,46,23,4,31,39,15,32,27,32,34,17,46,42,43,34,19) > x <- c(6.2,9.5,10.5,7.7,8.6,34.1,11,6.9,7.3,15.1,29.1,2.2,5.7,2,2.5,4,5.4,2.2,7.2,15.1,16.5,18.4,36.2,39.7,18.5,23.3,12.2,5.6,21.8,21.6,9,3.6,5,28.6,17.4,11.3,3.4,11.9,10.5,10.7,10.8,4.8) > par6 = '' > par5 = '' > par4 = 'Thefts' > par3 = '' > par2 = '' > par1 = 'Fires' > ylab = 'value' > xlab = 'index' > postscript(file="/var/wessaorg/rcomp/tmp/18tx51321372385.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/2z3wo1321372385.tab") > > try(system("convert tmp/18tx51321372385.ps tmp/18tx51321372385.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.447 0.069 0.517