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(146.54,120.13,131.67,131.97,145.92,177.02,149.56,171.58,173.95,190.39,183.46,165.44,186.32,223.29,198.99,191.05,178.42,187.85,183.51,252.94,213.51,185.53,215.48,214.39,229.21,183.55,206.71,186.23,217.46,214.69,202.06,225.57,220.70,246.32,273.51,220.66,295.88,215.35,230.83,220.00,232.06,237.68,294.39,295.35,267.68,274.12,246.84,249.34,303.25,236.14,233.38,260.96,281.18,281.54,288.95,332.68,345.96,414.96,285.35,288.03) > x <- c(153.24,184.48,191.81,168.19,163.81,190.57,163.81,129.62,173.90,198.76,135.52,179.81,137.05,142.57,187.52,220.48,208.76,210.19,232.57,173.81,218.86,226.76,196.67,237.43,173.14,207.62,234.67,204.10,230.76,210.19,194.76,172.10,221.90,225.24,228.00,198.76,199.05,235.43,270.76,234.10,237.24,239.43,239.24,197.33,217.43,242.19,207.52,232.76,222.10,202.48,228.10,319.52,236.95,252.00,262.29,172.10,243.90,235.62,216.95,236.29) > par5 = 'IVC' > par4 = 'ENC' > 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/1138s1258139967.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/1138s1258139967.ps tmp/1138s1258139967.png") > > > proc.time() user system elapsed 0.606 0.178 0.671