R version 2.7.2 (2008-08-25) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(93.4,101.1,114.2,104.8,113.3,118.2,83.6,73.9,99.5,97.7,103,106.3,92.2,101.8,122.8,111.8,106.3,121.5,81.9,85.4,110.9,117.3,106.3,105.6,101.2,105.9,126.3,111.9,108.9,127.2,94.2,85.7,116.2,107.2,110.5,112,104.4,112,132.8,110.8,128.7,136.8,94.8,88.8,123.2,125.3,122.7,125.8,116.3,118.6,142.1,127.9,132,152.4,110.8,99.1,134.9,133.2,131,133.9,119.9) > x <- c(97.60,99.50,110.70,104.40,99.80,108.40,91.80,90.20,109.20,111.40,102.80,91.50,98.90,100.80,112.10,106.70,103.50,111.30,100.80,94.20,115.50,114.10,105.00,94.00,98.30,96.00,101.80,102.50,98.70,110.70,88.70,89.20,106.80,104.10,103.20,93.70,100.50,98.70,111.10,104.50,105.00,109.70,92.60,94.20,111.70,113.40,106.80,98.00,104.20,105.40,117.50,107.90,107.00,113.30,97.60,98.20,111.30,116.00,108.10,95.60,110.80) > par5 = 'investeringsgoederen' > par4 = 'intermediaire goederen' > par3 = 'TRUE' > par2 = 'grey' > par1 = 'grey' > ylab = '' > main = 'Back to Back Histogram' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: Wessa P., (2007), Back to Back Histogram (v1.0.2) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_backtobackhist.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description > if (par3 == 'TRUE') par3 <- TRUE > if (par3 == 'FALSE') par3 <- FALSE > library(Hmisc) Attaching package: 'Hmisc' The following object(s) are masked from package:base : format.pval, round.POSIXt, trunc.POSIXt, units > z <- data.frame(cbind(x,y)) > names(z) <- list(par4,par5) > postscript(file="/var/www/html/freestat/rcomp/tmp/1d7w71224532782.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > out <- histbackback(z, probability=par3, main = main, ylab = ylab) > barplot(-out$left, col=par1, horiz=TRUE, space=0, add=TRUE, axes=FALSE) > barplot(out$right, col=par2, horiz=TRUE, space=0, add=TRUE, axes=FALSE) > dev.off() null device 1 > > system("convert tmp/1d7w71224532782.ps tmp/1d7w71224532782.png") > > > proc.time() user system elapsed 1.230 0.243 1.339