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(106.60,106.80,107.00,107.10,107.30,107.40,107.60,107.70,107.90,108.20,108.30,108.50,108.92,109.23,109.41,109.65,109.91,110.01,110.20,110.49,110.57,110.72,110.94,111.09,111.28,111.41,111.62,111.76,111.89,112.04,112.12,112.30,112.47,112.59,112.78,112.73,112.99,113.10,113.33,113.38,113.68,113.65,113.81,113.88,114.02,114.25,114.28,114.38,114.73,114.97,115.05,115.29,115.37,115.54,115.76,115.92,116.02,116.21,116.26,116.51) > x <- c(526.4,526.4,526.4,526.4,526.4,526.4,542.9,542.9,542.9,542.9,542.9,542.9,556.11,556.11,556.11,556.11,556.11,556.11,557.07,557.07,557.07,557.07,557.07,557.07,564.29,564.29,564.29,564.29,564.29,564.29,569,569,569,569,569,569,575,575,575,575,575,575,594.51,594.51,594.51,594.51,594.51,594.51,603.88,603.88,603.88,603.88,603.88,603.88,610.02,610.02,610.02,610.02,610.02,610.02) > par5 = 'Indexprijzen huurhuis' > par4 = 'Gemiddelde prijs brandverzekering' > 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/1wbqa1224525614.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/1wbqa1224525614.ps tmp/1wbqa1224525614.png") > > > proc.time() user system elapsed 0.957 0.155 1.065