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(108,99,108,104,111,110,106,101,102,99,100,98,92,87,79,87,87,88,83,85,92,84,92,98,103,104,109,107,106,113,107,114,108,104,105,109,109,112,118,111,99,92,92,98,87,97,102,105,111,110,109,111,113,114,120,114,120,122,123,115,123,124,124,132,126,126,122,120,114,116,100,97) > x <- c(95.2,95,94,92.2,91,91.2,103.4,105,104.6,103.8,101.8,102.4,103.8,103.4,102,101.8,100.2,101.4,113.8,116,115.6,113,109.4,111,112.4,112.2,111,108.8,107.4,108.6,118.8,122.2,122.6,122.2,118.8,119,118.2,117.8,116.8,114.6,113.4,113.8,124.2,125.8,125.6,122.4,119,119.4,118.6,118,116,114.8,114.6,114.6,124,125.2,124,117.6,113.2,111.4,112.2,109.8,106.4,105.2,102.2,99.8,111,113,108.4,105.4,102,102.8) > par5 = 'Economische situatie' > par4 = 'Totale werkloosheid' > 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/1qd3l1229447777.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/1qd3l1229447777.ps tmp/1qd3l1229447777.png") > > > proc.time() user system elapsed 1.757 0.275 1.954