R version 2.6.0 (2007-10-03) 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(115.9,112.9,126.3,116.8,112,129.7,113.6,115.7,119.5,125.8,129.6,128,112.8,101.6,123.9,118.8,109.1,130.6,112.4,111,116.2,119.8,117.2,127.3,107.7,97.5,120.1,110.6,111.3,119.8,105.5,108.7,128.7,119.5,121.1,128.4,108.8,107.5,125.6,102.9,107.5,120.4,104.3,100.6,121.9,112.7,124.9,123.9,102.2,104.9,109.8,98.9,107.3,112.6,104,110.6,100.8,103.8,117,108.4,95.5,96.9,103.9,101.1,100.6,104.3,98,99.5,97.4,105.6,117.5,107.4,97.8,91.5,107.7,100.1,96.6,106.8,98,98.6) > x <- c(125,121.7,134.3,124.3,119.1,137.8,120.5,122.7,127.2,133.2,136.3,134.9,120.9,109.4,129.6,124.7,114.6,137.4,117.9,117.4,122,124.8,123.3,132.8,115.1,104.2,125.5,116.8,116.8,125.5,110.9,114.9,136.4,125.8,126.5,134,116.1,115,130.3,106.5,111.6,125,108.3,105,127.4,116.6,128.6,127.5,108.4,110.8,114.2,101.8,109.8,115.9,106.9,114.6,105.4,108.1,118.4,112.7,98.4,99.6,103.9,101.5,100.8,104.5,98.2,99.9,97.5,105.7,117.7,107.4,98.4,92,107.7,100.2,96.7,106.8,98,98.6) > par5 = 'Male' > par4 = 'Female' > 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/rcomp/tmp/1dn6v1197547289.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/1dn6v1197547289.ps tmp/1dn6v1197547289.png") > > > proc.time() user system elapsed 1.016 0.166 1.100