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(1.00,0.92,1.11,1.00,1.04,0.95,1.00,0.97,0.97,1.03,0.90,1.07,1.04,0.89,1.07,1.03,0.96,1.02,1.10,0.93,1.02,0.98,0.93,1.09,1.01,0.93,1.07,0.95,0.99,1.08,1.05,0.98,0.98,0.98,0.96,1.07,0.98,0.93,1.13,0.95,1.01,1.01,1.01,1.04,0.97,1.00,0.92,1.06,1.03,0.90,1.14,0.93,1.08,0.98,1.02,1.02,1.00,1.01,0.91,0.98) > x <- c(1.00,1.84,1.04,1.19,1.62,1.23,0.83,1.43,0.72,0.66,0.62,1.10,0.65,1.64,1.11,1.23,1.58,1.04,0.93,1.36,0.77,0.66,0.61,1.17,0.72,1.55,0.90,1.62,1.30,1.06,1.16,0.95,0.91,0.65,0.62,1.15,0.69,1.34,1.04,1.64,1.30,1.05,1.19,0.96,0.95,0.58,0.65,1.15,0.65,1.32,1.25,1.40,1.33,1.20,1.00,1.03,1.07,0.49,0.64,1.32) > par5 = 'ipkl' > par4 = 'iptot' > 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/1wcr61257946703.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/1wcr61257946703.ps tmp/1wcr61257946703.png") > > > proc.time() user system elapsed 0.607 0.173 0.682