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,106.73,104.81,96.15,88.46,88.46,91.35,92.31,91.35,87.50,85.58,86.54,97.12,99.04,98.08,92.31,88.46,89.42,90.38,90.38,88.46,86.54,86.54,86.54,94.23,96.15,94.23,89.42,86.54,86.54,87.50,87.50,87.50,88.46,84.62,79.81,80.77,77.88,74.04,75.96,75.96,76.92,75.96,73.08,68.27,65.38,62.50,66.35,78.85,83.65,79.81,75.96,72.12,75.00,79.81,80.77,78.85,74.04,69.23,70.19) > x <- c(100.00,105.26,106.58,101.32,98.68,100.00,102.63,102.63,102.63,98.68,98.68,93.42,98.68,98.68,100.00,101.32,101.32,103.95,106.58,107.89,107.89,107.89,103.95,96.05,90.79,86.84,88.16,90.79,92.11,93.42,94.74,93.42,90.79,92.11,89.47,84.21,88.16,86.84,84.21,82.89,81.58,85.53,89.47,89.47,84.21,80.26,76.32,80.26,94.74,96.05,90.79,80.26,76.32,81.58,93.42,101.32,103.95,101.32,97.37,98.68) > par5 = 'Wv' > par4 = 'Wm' > 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/1hwwg1259014173.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/1hwwg1259014173.ps tmp/1hwwg1259014173.png") > > > proc.time() user system elapsed 0.598 0.184 0.671