R version 2.7.0 (2008-04-22) 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(357,600,667,839,1295,1956,1584,2243,1582,954,645,655,405,554,702,869,1364,1716,1625,2114,1556,1012,596,677,470,679,629,1068,1377,1660,1930,1828,1687,1008,591,669,475,593,641,1087,1238,1609,2016,1953,1771,1045,675,716,437,553,659,1169,1343,1649,2016,1909,2085,976,595,797,456,630,755,885,1309,2016) > x <- c(632,1270,1211,1469,2570,2765,2487,3644,2501,1629,987,1100,690,1378,1376,1736,2800,2671,2508,3590,2691,1629,1020,1224,787,1424,1232,2021,2782,2682,3284,3194,2736,1701,1089,1240,799,1163,1180,1960,2914,2658,3254,3222,2987,1604,1032,1283,774,1109,1453,1849,2800,3310,3060,3422,3448,1670,1022,1391,767,1172,1498,1623,2646,3439) > par5 = 'Huwelijken Waals Gewest' > par4 = 'Huwelijken Vlaams Gewest' > par3 = 'TRUE' > par2 = 'red' > 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) 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/1iwes1228917185.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/1iwes1228917185.ps tmp/1iwes1228917185.png") > > > proc.time() user system elapsed 1.771 0.300 1.844