R version 2.7.2 (2008-08-25) Copyright (C) 2008 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(641,550,542,629,687,612,588,567,564,570,635,591,634,576,352,508,586,666,694,651,655,734,648,678,816,591,564,743,694,729,749,539,569,693,581,507,613,443,523,597,534,523,559,431,538,612,428,522,531,426,410,551,556,460,289,392,401,399,355,338,379,334,322,450,486,422,406,420,432,418) > x <- c(15107,15024,12083,15761,16943,15070,13660,14769,14725,15998,15371,14957,15470,15102,11704,16284,16727,14969,14861,14583,15306,17904,16379,15420,17871,15913,13867,17823,17872,17422,16705,15991,16584,19124,17839,17209,18587,16258,15142,19202,17747,19090,18040,17516,17752,21073,17170,19440,19795,17575,16165,19465,19932,19961,17343,18924,18574,21351,18595,19823,20844,19640,17735,19814,22239,20682,17819,21872,22117,21866) > par5 = 'Brussels Gewest' > par4 = 'Totaal' > 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: 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) 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/13ysu1224461413.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/13ysu1224461413.ps tmp/13ysu1224461413.png") > > > proc.time() user system elapsed 0.955 0.156 1.018