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(86.7,87.9,89.8,103,102.7,156.3,95,84.6,106.5,98.7,103.5,110.7,96.2,89.2,97.1,104.8,132.5,154.8,83.6,82.4,103.9,87,93.2,110.5,96.4,76.3,94,103.4,137,150.1,112.6,81.4,113.6,99.6,98.2,118.6,86.8,79.3,98.4,93.6,101,161.2,92.5,99.8,104.1,90.2,99.2,116.5,98.4,90.6,130.5,107.4,106,196.5,107.8,90.5,123.8,114.7,115.3,197,88.4,93.8,111.3,105.9,123.6,171,97,99.2,126.6,103.4,121.3,129.6,110.8,98.9,122.8,120.9,133.1,203.1,110.2,119.5,135.1,113.9,137.4,157.1,126.4,112.2,128.8,136.8,156.5,215.2,146.7,130.8,133.1,154.4,160.4,175.1,145.3) > x <- c(80.7,86.9,105,95.1,100.2,182.4,90,78.2,97.4,84.2,90,100.9,84.5,92.3,90.3,91,96.4,167.6,88.5,67.5,83,77.7,80.6,96.1,71.2,75.3,90.9,106.4,96.3,181.2,65.4,72.2,80.4,77.7,76.5,100.1,73.5,77.3,98.6,112.4,77.3,139.3,75.4,64.2,86.8,79.1,71.7,100,82.1,74.8,92.3,83.3,83.7,148,71.4,71.2,84.6,80.9,80.6,105.5,79.2,78.4,92.6,88.3,98.2,157.4,73.9,80.9,93,84.9,96.2,106.5,81.7,82.9,96,92.6,116.5,155,95.1,86.2,105,89.7,97.1,120.8,92.2,98.8,104.1,106.5,113.4,192.4,103.6,97.6,99.9,106.2,104.9,114.2,94.5) > par5 = 'Investeringen niet-industrie' > par4 = 'Investeringen industrie' > 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/freestat/rcomp/tmp/1ioca1224528720.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/1ioca1224528720.ps tmp/1ioca1224528720.png") > > > proc.time() user system elapsed 1.246 0.226 1.618