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(100.6,96.1,110,108.2,106.9,117.2,105.2,106.3,95.9,107.5,113,111.4,95.5,90.3,110.8,107.1,101.4,112.9,98.5,100.1,93.4,104.4,101.8,107.9,91.3,86.6,111.4,98.4,102.2,103,95.8,96,95.7,106.4,112,116.2,93.9,100.5,112.5,101.2,107.8,114.3,99.6,98.6,93.6,99.6,113.1,110.7,88.1,93.1,107.4,99.5,105.6,108.3,99.2,99.3,107.1,106.9,115.4,99,100.1,96.2,96.9,96.2,91,99,99,107.2,110.8,111.1,104.6,94.3,90.7,88.8,90.9,90.5,95.5,103.1,100.6,103.1) > 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, units<- > z <- data.frame(cbind(x,y)) > names(z) <- list(par4,par5) > postscript(file="/var/www/html/rcomp/tmp/1khvk1194891670.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/1khvk1194891670.ps tmp/1khvk1194891670.png") > > > proc.time() user system elapsed 0.746 0.169 0.819