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(100.00,97.67,95.35,95.35,97.67,101.55,99.22,96.90,100.00,101.55,101.55,102.33,96.90,97.67,100.00,97.67,96.12,90.70,93.02,94.57,92.25,89.92,89.92,86.82,86.82,89.15,89.92,90.70,91.47,91.47,91.47,87.60,87.60,88.37,86.05,89.15,94.57,100.00,101.55,104.65,105.43,111.63,110.08,117.83,122.48,123.26,119.38,120.16,113.95,101.55,97.67,95.35,92.25,82.17,82.17,74.42,68.99,64.34,71.32,68.22) > x <- c(100.00,95.83,100.00,100.00,112.50,116.67,104.17,79.17,79.17,79.17,83.33,66.67,91.67,87.50,104.17,120.83,116.67,104.17,108.33,100.00,116.67,116.67,116.67,116.67,133.33,129.17,91.67,120.83,129.17,120.83,133.33,133.33,129.17,120.83,116.67,116.67,120.83,91.67,108.33,100.00,112.50,112.50,95.83,87.50,79.17,70.83,79.17,87.50,54.17,33.33,20.83,41.67,25.00,25.00,33.33,45.83,50.00,54.17,79.17,79.17) > par5 = 'Consumptieprijsindex' > par4 = 'Consumentenvertrouwen' > par3 = 'TRUE' > par2 = 'blue' > par1 = 'red' > 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/1lplc1258291801.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/1lplc1258291801.ps tmp/1lplc1258291801.png") > > > proc.time() user system elapsed 0.604 0.180 0.753