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,211.30,333.91,187.83,254.78,121.74,113.91,140.87,142.61,173.91,121.74,113.91,115.65,155.65,256.52,217.39,230.43,171.30,155.65,133.04,140.87,169.57,183.48,173.91,176.52,176.52,306.96,247.83,171.30,140.87,171.30,153.04,184.35,236.52,177.39,164.35,208.70,211.30,403.48,328.70,261.74,254.78,277.39,282.61,357.39,284.35,183.48,186.09,179.13,175.65,317.39,375.65,277.39,313.91,203.48,199.13,240.87,238.26,258.26,335.65,302.61,373.91,570.43,382.61,307.83,435.65,306.09,250.43,350.43,426.09,477.39,437.39) > x <- c(100.00,108.16,114.02,102.19,110.37,96.86,94.19,99.52,94.06,97.55,78.15,81.24,92.36,96.06,114.05,110.66,104.92,90.00,95.70,86.03,84.85,100.04,80.92,74.07,77.30,97.23,90.76,100.56,92.01,99.24,105.87,90.99,93.31,91.17,77.33,91.13,85.01,83.90,104.86,110.90,95.44,111.62,108.89,96.18,101.97,99.12,86.78,118.42,118.74,106.53,134.78,104.68,105.30,139.41,103.61,99.78,103.46,120.06,96.71,107.13,105.36,111.69,132.05,126.80,154.48,141.56,109.95,127.90,133.09,120.08,117.56,143.04) > par5 = 'HK' > par4 = 'BV' > 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/14if81257860018.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/14if81257860018.ps tmp/14if81257860018.png") > > > proc.time() user system elapsed 0.582 0.176 0.777