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(100.3,97.6,89.1,99.1,94.9,96.5,92.6,80.8,89.5,101.4,95.9,92.3,91.2,88.3,80.7,89.9,87.2,86.9,82.8,72.6,81.3,91.2,87.3,83.4,81.7,80.2,74.1,80.6,79.0,79.3,71.2,78.1,68.2,81.0,106.9,123.7,73.7,69.2,72.5,75.7,73.5,70.4,65.7,68.1,62.4,64.7,77.7,85.9,61.0,57.4,75.1,75.9,71.8,72.3,67.3,71.5,67.6,74.2,77.6,76.4,74.2) > 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 Brussel' > 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: 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) 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/17fsg1224537413.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/17fsg1224537413.ps tmp/17fsg1224537413.png") > > > proc.time() user system elapsed 0.923 0.172 1.014