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(37.6,52.8,32.1,33.3,43.6,37.5,31.9,102,55,81.1,36.2,39.7,45.6,43,33.9,34.1,62.1,43.2,70.7,74.9,68.4,64.1,70.4,51.6,52.4,73.9,85.9,52.9,68.6,71.4,71.7,94.8,94.6,59.4,94.3,49.7,59.7,58,40.8,66.4,54,31.8,55.1,72.3,69.7,56.3,57,44.1,43.8,51,42,52.6,73.7,40.5,49,74.3,59.4,125.8,77.8,102.8,70.3,103.2,42.1,59,45,57.1,57.2,147.5,98.7,70.5,41,54.2,39.8,50.9,42.3,37.6,44.6,46.4,48,152.9,64.5,50.5,60.3,53.8,52.8,50.2,70.8,62,73.7,43.4,49.6,141,122.3,86.4,134,107.1,80.9) > x <- c(86.3,99.1,98.4,95.6,92.2,79.4,100.9,135.3,114.6,85.7,76.3,72.2,66.7,91.2,69.7,62.8,102,54.8,53.2,107.8,89.3,68.2,64.9,58.9,47.2,56.4,64.8,59.2,67.1,51.1,55.6,106,53.4,52.3,89,56.9,44.4,101.6,68.8,52.2,74.1,67.1,63.4,300.4,114.6,120.4,124,106.9,130.4,153.1,61.2,59.3,119.9,90.1,86.2,262,112.3,91.9,94.6,103.9,110,150.2,105.1,124.4,185.1,96.7,319.9,240.4,127.1,90.6,82.5,103.4,92.9,154.9,131.6,104.1,104.2,73.9,115.9,136.9,117.3,62.9,89.3,91,91.3,97.6,151.4,83.4,119.1,84.6,164,145.3,124.2,74.6,94.3,98.3,90.4) > par5 = 'investeringen transportmiddelenindustrie' > par4 = 'investeringen wegtransporteurs' > 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/1aogf1224575189.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/1aogf1224575189.ps tmp/1aogf1224575189.png") > > > proc.time() user system elapsed 1.215 0.230 1.289