R version 2.8.1 (2008-12-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(122.5,122.4,121.9,122.2,123.7,122.6,115.7,116.1,120.5,122.6,119.9,120.7,120.2,122.1,119.3,121.7,113.5,123.7,123.4,126.4,124.1,125.6,124.8,123,126.9,127.3,129,126.2,125.4,126.3,126.3,128.4,127.2,128.5,129,128.9,128.3,124.6,126.2,129.1,127.3,129.2,130.4,125.9,135.8,126.4,129.5,128.4,125.6,127.7,126.4,124.2,126.4,123.7,121.8,124,122.7,122.9,121,122.8,122.9) > x <- c(80.2,74.8,77.8,73,72,75.8,72.6,71.9,74.8,72.9,72.9,79.9,74,76,69.6,77.3,75.2,75.8,77.6,76.7,77,77.9,76.7,71.9,73.4,72.5,73.7,69.5,74.7,72.5,72.1,70.7,71.4,69.5,73.5,72.4,74.5,72.2,73,73.3,71.3,73.6,71.3,71.2,81.4,76.1,71.1,75.7,70,68.5,56.7,57.9,58.8,59.3,61.3,62.9,61.4,64.5,63.8,61.6,64.7) > par5 = 'niet-duurzame consumptiegoederen' > par4 = 'duurzame consumptiegoed' > 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) 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/rcomp/tmp/17bmo1257931236.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/17bmo1257931236.ps tmp/17bmo1257931236.png") > > > proc.time() user system elapsed 0.610 0.370 0.893