R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(115.8,112.2,115.8,120.7,118.4,113.1,116.1,114.4,115.6,113.6,109.2,114.2,115,110.1,114.1,111.8,118.5,120.3,120.6,116.9,122.4,118.2,114.2,119.5,117.6,120.3,120.8,117,121.4,121,120.7,118.2,121.2,121.6,122.6,122.9,111.2,121.7,122.1,117.8,123.8,123.5,119.1,125.5,118.9,119.3,123,115.2,119.2,118.4,113.7,119.7,114.5,113,115.2,113.5,112.9,113.4,112.2,113.1) > x <- c(103.5,104.1,101.9,102,100.7,99,96.5,101.8,100.5,103.3,102.3,100.4,103,99,104.8,104.5,104.8,103.8,106.3,105.2,108.2,106.2,103.9,104.9,106.2,107.9,106.9,110.3,109.8,108.3,110.9,109.8,109.3,109,107.9,108.4,107.2,109.5,109.9,108,114.7,115.6,107.6,115.9,111.8,110,109.2,108,105.6,103,99.6,97.9,97.6,96.2,97.9,94.5,95.4,94.4,96.3,95.1) > par5 = 'Procon' > par4 = 'Indprod' > par3 = 'TRUE' > par2 = 'yellow' > 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/html/rcomp/tmp/1q7a01258115642.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/1q7a01258115642.ps tmp/1q7a01258115642.png") > > > proc.time() user system elapsed 0.592 0.173 0.653