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(100.00,98.20,90.09,82.88,82.88,85.59,86.49,85.59,81.98,80.18,81.08,90.99,92.79,91.89,86.49,82.88,83.78,84.68,84.68,82.88,81.08,81.08,81.08,88.29,90.09,88.29,83.78,81.08,81.08,81.98,81.98,81.98,82.88,79.28,74.77,75.68,72.97,69.37,71.17,71.17,72.07,71.17,68.47,63.96,61.26,58.56,62.16,73.87,78.38,74.77,71.17,67.57,70.27,74.77,75.68,73.87,69.37,64.86,65.77,72.97) > x <- c(100.00,101.25,96.25,93.75,95.00,97.50,97.50,97.50,93.75,93.75,88.75,93.75,93.75,95.00,96.25,96.25,98.75,101.25,102.50,102.50,102.50,98.75,91.25,86.25,82.50,83.75,86.25,87.50,88.75,90.00,88.75,86.25,87.50,85.00,80.00,83.75,82.50,80.00,78.75,77.50,81.25,85.00,85.00,80.00,76.25,72.50,76.25,90.00,91.25,86.25,76.25,72.50,77.50,88.75,96.25,98.75,96.25,92.50,93.75,100.00) > par5 = 'werkloosheid vrouwen' > par4 = 'werkloosheid mannen' > 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/115701257511319.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/115701257511319.ps tmp/115701257511319.png") > > > proc.time() user system elapsed 0.555 0.228 0.670