R version 2.6.1 (2007-11-26) Copyright (C) 2007 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(87.3,97.6,107.1,96.1,109.5,105.0,83.9,89.2,107.0,113.6,108.1,91.9,104.9,99.2,104.3,104.0,101.5,105.4,88.7,83.6,98.0,108.9,92.8,82.0,101.3,106.3,94.0,102.8,102.0,105.1,92.4,81.4,105.8,120.3,100.7,88.8,94.3,99.9,103.4,103.3,98.8,104.2,91.2,74.7,108.5,114.5,96.9,89.6,97.1,100.3,122.6,115.4,109.0,129.1,102.8,96.2,127.7,128.9,126.5,119.8,113.2,114.1,134.1,130.0,121.8,132.1,105.3,103.0,117.1,126.3,138.1,119.5,138.0,135.5,178.6,162.2,176.9,204.9,132.2,142.5,164.3,174.9,175.4,143.0,158.7,155.4,176.6,163.3,178.9,182.7,158.7) > x <- c(59.9,59.9,59.9,60.9,60.9,60.9,61.1,61.1,61.1,60.2,60.2,60.2,60.1,60.1,60.1,59.7,59.7,59.7,60.5,60.5,60.5,59.5,59.5,59.5,59.5,59.5,59.5,59.7,59.7,59.7,60.4,60.4,60.4,60,60,60,59,59,59,59.3,59.3,59.3,59.7,59.7,59.7,60.4,60.4,60.4,59.9,59.9,59.9,60.5,60.5,60.5,60.4,60.4,60.4,60.6,60.6,60.6,60.9,60.9,60.9,61,61,61,61.2,61.2,61.2,61.2,61.2,61.2,60.3,60.3,60.3,60.4,60.4,60.4,61.2,61.2,61.2,62.1,62.1,62.1,61.7,61.7,61.7,61.6,61.6,61.6) > par5 = 'Totale Industri' > par4 = 'Werkgelegenheid' > 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)) Warning message: In cbind(x, y) : number of rows of result is not a multiple of vector length (arg 1) > names(z) <- list(par4,par5) > postscript(file="/var/www/html/rcomp/tmp/1kiky1199627749.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/1kiky1199627749.ps tmp/1kiky1199627749.png") > > > proc.time() user system elapsed 1.714 0.248 1.781