R version 2.7.2 (2008-08-25) Copyright (C) 2008 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(110.42,110.26,110.16,110.38,111,111.4,111.58,111,109.93,110.17,110.02,108.89,109.68,109.82,109.79,109.55,109.46,109.98,110.65,111.56,113.23,114.05,114.15,113.74,114.27,114.41,114.31,114.36,114.07,114.71,115.48,116.27,117.27,117.07,116.46,115.66,116.1,116.78,116.11,119.17,120.76,121.07,122.07,123.22,122.75,123.12,123.22,122.92,124.3,126.54,127.53,127.37,127.47,128.19,127.94,127.46,127.53,127.26,126.5,124.53) > x <- c(107.31,107.42,107.51,107.09,107.42,107.58,108.65,108.47,108.38,107.96,107.67,106.09,107.83,107.82,107.88,107.91,107.98,107.58,107.7,107.97,109.13,108.92,109.17,108.39,109.32,109.48,109.55,109.31,109.05,109.26,109.14,109.76,110.7,110.14,111.47,110.89,110.45,110.2,110.23,112.3,112.77,112.95,112.67,112.68,112.33,111.95,111.66,110.65,111.9,113.7,113.53,113.73,114.85,113.48,113.13,112.45,110.77,110.01,109.41,107.01) > par5 = 'vermout' > par4 = 'porto' > par3 = 'TRUE' > par2 = 'grey' > par1 = 'grey' > ylab = '' > main = 'porto back to back vermout' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: Wessa P., (2007), Back to Back Histogram (v1.0.2) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_backtobackhist.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description > if (par3 == 'TRUE') par3 <- TRUE > if (par3 == 'FALSE') par3 <- FALSE > library(Hmisc) Attaching package: 'Hmisc' 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/freestat/rcomp/tmp/1z65g1224541608.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/1z65g1224541608.ps tmp/1z65g1224541608.png") > > > proc.time() user system elapsed 1.233 0.239 1.311