R version 2.8.0 (2008-10-20) 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(236.1,194.7,194.8,219.3,209.1,208.8,206.4,220.3,206.3,156.0,195.9,199.0,198.0,190.6,169.5,212.3,173.8,231.5,206.0,181.5,181.4,168.3,188.7,206.4,179.4,158.6,138.9,185.4,163.4,136.5,187.8,146.2,137.5,155.0,177.6,155.9,173.2,153.1,134.8,182.0,140.6,151.8,169.1,145.8,143.6,146.0,170.7,154.1,164.7,135.5,129.5,165.9,129.3,137.7,157.5,124.5,125.3,117.1,121.4,143.1) > x <- c(3755.3,3001.4,3815.7,4034.4,3590.4,4176.4,3943.5,3934.2,3859.2,3300.5,3800.0,3958.7,3451.4,2678.6,3279.3,3550.3,3294.4,3202.2,3486.4,3139.7,3283.2,2933.6,3391.6,3301.3,3257.6,2537.0,2970.5,3481.9,3361.1,3123.2,3843.3,3153.0,3365.1,3528.5,3506.7,3146.6,3195.1,2424.0,2676.3,3174.6,3067.4,3121.2,3517.7,3014.7,2949.6,2990.3,3084.1,3077.9,3023.6,2226.2,2628.3,3088.7,2551.4,2856.7,3176.2,2663.1,2630.4,2584.4,2472.2,2895.6) > par5 = 'Uitvoer naar Denemarken' > par4 = 'Uitvoer naar Frankrijk' > 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/1mmpe1229886014.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/1mmpe1229886014.ps tmp/1mmpe1229886014.png") > > > proc.time() user system elapsed 0.771 0.159 1.243