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(109.11,109.08,109.28,109.38,109.06,109.39,109.65,109.78,109.86,110,109.98,109.87,109.74,109.7,109.65,109.9,109.81,109.69,109.74,110.05,110.23,110.31,110.67,110.8,111.19,111.06,111.21,111.05,111.1,111.07,111.22,111.45,111.64,111.9,112.32,112.65,112.85,113.17,113.06,116.63,118.6,119.23,119.27,119.55,119.65,119.98,121.07,121.63,122.3,122.86,122.85,123.01,122.4,122.43,122.34,122.16,122.19,121.93,121.94,122.18) > x <- c(107.93,108.29,108.06,108.29,108.55,107.97,109.08,107.75,109,107.39,109.27,108.07,109.6,109.6,109.5,110.1,109.72,108.96,109.03,107.84,108.65,108.45,109.15,108.32,109.72,110.06,107.96,108.77,109.86,110.35,110.55,109.51,110.63,111.03,111.94,110.77,111.87,112.31,112.07,112.95,113.95,114.85,115.47,114.8,114.84,114.92,116.27,115.55,117.6,118.19,118.13,117.95,119.63,119.29,119.26,118.38,117.69,118.99,119.24,118.47) > par5 = 'Rode tafelwijn' > par4 = 'Muscadet (witte wijn)' > par3 = 'TRUE' > par2 = 'grey' > par1 = 'grey' > ylab = '' > main = 'Muscadet back to back rode tafelwijn' > #'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/rcomp/tmp/1rxah1224541063.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/1rxah1224541063.ps tmp/1rxah1224541063.png") > > > proc.time() user system elapsed 0.922 0.167 1.004