R version 2.8.0 (2008-10-20) 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(199.4,263,365.9,417.9,483.9,474.3,441.2,388.5,368.2,340.9,322.8,317.2,323.4,289.6,269.2,248.5,258.8,240.9,228.2,228.5,213.3,203,188.9,214.2,203.1,201.2,215.4,248.8,251.5,237.8,239,237.8,214.1,209.4,215.7,196,190.5,201.5,214.3,215.4,199.3,192,172.4,181.3,180.9,158.5,154.4,142,153.2,167.3,150.6,152.1,140.3,134,137.6,125.1,123.1,113.8,113.8,107.9,104) > x <- c(178.2,187.2,229.9,243,267.2,270.3,251.2,251.9,256.7,251.3,227.1,211.9,195.8,190.8,185.9,169.9,169.9,168.7,159.5,156,160.7,161.6,156.6,155.4,151.8,141.2,133.6,133.9,138.4,134.7,138.4,136,135,137.3,135.2,127.4,122.1,122,120.8,124.9,131,132.5,129.3,128.1,132.9,120.1,115.5,116.6,112.3,108.5,111.5,113.6,125,134.7,139.4,142.9,141.7,131.7,128.8,121.4,118.4) > par5 = 'Energiegrondstoffen' > par4 = 'Levensmiddelen' > 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/1lp7e1229858839.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/1lp7e1229858839.ps tmp/1lp7e1229858839.png") > > > proc.time() user system elapsed 0.763 0.175 0.842