R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(11.3,13.6,16.7,14.2,21.3,13.8,9,1.9,4.6,15.1,22.7,25.5,19.9,14.9,12,6.8,16.5,23.4,32.7,31.3,32.4,21.2,20.7,11.8,14.2,16.1,16.6,16.5,13.7,11.9,11,10.1,11.3,17.9,23,28.6,29.9,32,33.9,39.1,29.8,30,22.8,29.8,26.6,29.2,21.2,18.9,17.3,14.2,9.1,5.5,0.9,1,3.3,3.8,3.9,1.1,4.5,9.6,14.8) > x <- c(59,59,67,71,72,73,73,75,70,67,59,43,23,23,19,11,13,8,0,2,7,5,9,6,10,11,16,14,14,9,17,16,21,41,14,13,19,18,27,26,30,27,33,26,26,35,39,37,39,40,44,45,46,34,34,39,40,41,40,41,32) > par5 = 'vrkpw' > par4 = 'cstvert' > par3 = 'TRUE' > par2 = 'blue' > par1 = 'red' > 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: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > if (par3 == 'TRUE') par3 <- TRUE > if (par3 == 'FALSE') par3 <- FALSE > library(Hmisc) Loading required package: survival Loading required package: splines Attaching package: 'Hmisc' The following object(s) are masked from package:survival : untangle.specials 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/1y5ja1257957258.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/1y5ja1257957258.ps tmp/1y5ja1257957258.png") > > > proc.time() user system elapsed 0.592 0.180 0.670