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(1.2,1.2,1.4,1.5,1.4,1.8,2,2.3,2.6,2.3,2.5,2.3,2.1,2.2,2.2,2.7,3.1,3.2,3.1,3.1,2.8,3,2.8,2.7,3.2,3.1,3,2,1.7,1.2,1.4,1.3,1.3,1.1,0.9,1.2,0.9,1.3,1.4,1.5,1.1,1.6,1.5,1.6,1.7,1.6,1.7,1.6,1.6,1.3,1.1,1.6,1.9,1.6,1.7,1.6,1.4,2.1,1.9,1.7,1.8,2,2.5,2.1,2.1,2.3,2.4,2.4,2.3,1.7,2,2.3) > x <- c(16.42,16.47,16.44,16.44,16.49,16.32,16.47,16.39,16.42,16.39,16.4,16.24,16.42,16.46,16.47,16.37,16.42,16.34,16.41,16.43,16.4,16.35,16.31,16.18,16.29,16.27,16.31,16.28,16.32,16.32,16.37,16.39,16.51,16.5,16.49,16.32,16.37,16.39,16.41,16.39,16.41,16.37,16.4,16.53,16.63,16.64,16.63,16.47,16.46,16.49,16.59,16.58,16.6,16.55,16.57,16.51,16.5,16.49,16.44,16.26,16.33,16.72,16.75,16.74,16.84,16.79,16.66,16.69,16.84,16.86,16.76,16.72) > par5 = 'Gezondheidsindex' > par4 = 'Whisky' > 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) 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/rcomp/tmp/17o9u1224499477.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/17o9u1224499477.ps tmp/17o9u1224499477.png") > > > proc.time() user system elapsed 0.961 0.186 3.432