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(2468.9,2469.2,2417.7,2411.1,2361,1924.1,2486.9,2674.9,2296.2,2101.5,2322,2273.8,2501.3,2435.2,2273.3,2454.7,2328.8,1897,2608.1,2712.3,2322,2282.6,2241.1,2417.2,2829,2600.6,2321,2768.5,2457.3,2142.7,2764.4,2788.9,2679.5,2536.5,2682.7,2699.6,3097.8,3015.2,2878,3010.9,2612.3,2419.3,3096.5,3013,3397.4,3423.1,3298.7,3065.7,3918.3,3154.4,3334.7,3461.6,3018.5,2832,3301.3,3342.8,3464.4,3016.6,3201.3,3135.3,3549.8,3247.2,3441.8,3535.6,3384.7,2996.6,3402.8,3900.2,3776.4,3197.5,4022.4,3845.1,3818.6) > x <- c(12710.3,12120.8,12469.5,12054.6,12112.9,9617.2,12645.8,13581.3,12162.3,10969.7,11880,11887.6,12926.9,12300,12092.8,12380.8,12196.9,9455,13168,13427.9,11980.5,11884.8,11691.7,12233.8,14341.4,13130.7,12421.1,14285.8,12864.6,11160.2,14316.2,14388.7,14013.9,13419,12769.6,13315.5,15332.9,14243,13824.4,14962.9,13202.9,12199,15508.9,14199.8,15169.6,14058,13786.2,14147.9,16541.7,13587.5,15582.4,15802.8,14130.5,12923.2,15612.2,16033.7,16036.6,14037.8,15330.6,15038.3,17401.8,14992.5,16043.7,16929.6,15921.3,14417.2,15961,17851.9,16483.9,14215.5,17429.7,17839.5,17629.2) > par5 = 'uitvoer: Waalse gewest' > par4 = 'uitvoer: Vlaamse gewest' > par3 = 'TRUE' > par2 = 'red' > par1 = 'blue' > 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/1legp1224518541.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/1legp1224518541.ps tmp/1legp1224518541.png") > > > proc.time() user system elapsed 0.961 0.191 1.380