R version 2.7.0 (2008-04-22) 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(117.1,107.0,107.0,111.0,108.2,96.3,100.9,107.7,106.2,118.7,116.1,118.1,118.4,110.8,106.4,112.2,108.3,96.0,100.6,107.8,108.4,120.9,117.3,119.7,119.6,111.8,108.1,111.8,105.5,93.6,103.9,100.3,106.6,118.4,106.6,109.8,115.9,111.7,119.8,116.1,103.2,99.0,112.3,104.2,114.0,121.7,107.2,112.8,117.8,113.3,116.1,111.8,110.2,110.0,102.9,110.1,102.7,118.7,109.0,115.7,118.1) > x <- c(116.1,102.5,102.0,101.3,100.6,100.9,104.2,108.3,108.9,109.9,106.8,112.7,113.4,101.3,97.8,95.0,93.8,94.5,101.4,105.8,106.6,109.7,108.8,113.4,113.7,103.6,98.2,95.5,94.4,95.9,103.2,104.1,127.6,130.3,133.0,140.4,123.5,116.9,115.9,113.1,112.1,112.4,118.9,117.4,115.6,120.7,114.9,122.0,119.6,114.6,118.4,110.9,111.6,114.6,112.1,117.4,114.8,123.4,118.1,121.9,123.3) > par5 = 'Energie Vlaanderen' > par4 = 'Energie België' > par3 = 'TRUE' > par2 = 'grey' > par1 = 'grey' > 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: 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/14vjn1224537051.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/14vjn1224537051.ps tmp/14vjn1224537051.png") > > > proc.time() user system elapsed 1.725 0.253 1.800