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,100.00,96.63,93.26,93.26,93.26,94.38,95.51,94.38,96.63,95.51,95.51,94.38,95.51,95.51,95.51,95.51,95.51,95.51,95.51,95.51,96.63,94.38,91.01,89.89,89.89,89.89,89.89,88.76,87.64,87.64,88.76,91.01,89.89,85.39,82.02,78.65,76.40,78.65,79.78,80.90,79.78,77.53,75.28,75.28,74.16,77.53,82.02,84.27,82.02,79.78,77.53,79.78,84.27,86.52,87.64,87.64,86.52,87.64,87.64,88.76) > x <- c(100,100.00,93.55,88.17,89.25,91.40,92.47,91.40,88.17,87.10,84.95,92.47,93.55,93.55,91.40,90.32,91.40,93.55,93.55,92.47,91.40,89.25,86.02,88.17,87.10,87.10,86.02,84.95,84.95,86.02,86.02,84.95,86.02,82.80,77.42,80.65,78.49,75.27,75.27,75.27,77.42,78.49,76.34,73.12,68.82,65.59,69.89,82.80,84.95,80.65,74.19,70.97,74.19,82.80,86.02,86.02,82.80,78.49,79.57,87.10,89.25) > par5 = 'wztot' > par4 = 'wtot' > 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/12i8e1257799279.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/12i8e1257799279.ps tmp/12i8e1257799279.png") > > > proc.time() user system elapsed 0.591 0.164 1.243