R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(107.25,105.80,102.90,100.00,98.55,108.70,110.14,113.04,115.94,117.39,118.84,120.29,118.84,115.94,114.49,110.14,110.14,120.29,121.74,121.74,121.74,121.74,124.64,128.99,127.54,120.29,108.70,104.35,107.25,127.54,134.78,134.78,126.09,118.84,120.29,123.19,124.64,123.19,118.84,117.39,114.49,124.64,126.09,126.09,123.19,121.74,123.19,126.09,126.09,124.64,123.19,120.29,115.94,118.84,117.39,117.39,115.94,114.49,114.49,115.94,115.94,114.49,115.94,111.59,104.35,108.70,105.80,101.45,101.45,101.45,104.35,105.80,102.90,98.55,92.75,88.41,94.20,111.59,114.49,108.70,100.00,95.65,100.00,111.59,115.94) > x <- c(100.03,99.15,97.22,95.85,96.04,108.94,110.70,110.24,109.31,107.34,107.97,109.43,108.98,107.48,107.31,105.57,106.86,120.00,122.19,121.83,119.23,115.37,116.94,118.53,118.22,117.05,114.58,113.12,114.40,125.10,128.74,129.13,128.86,125.24,125.51,124.54,124.22,123.19,120.80,119.61,119.94,130.84,132.56,132.42,129.02,125.50,125.875,125.08,124.38,122.21,121.03,120.73,120.77,130.59,131.91,130.67,123.86,119.24,117.46,118.16,115.69,112.07,110.85,107.72,105.11,117.06,119.00,114.17,111.10,107.47,108.40,108.96,106.98,103.84,103.33,98.93,100.66,111.37,112.47,109.17,106.69,105.78,108.89,111.27,112.27) > par5 = 'bruto werkloosheid' > par4 = 'Niet werkend werkzoekend' > 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) Loading required package: survival Loading required package: splines Attaching package: 'Hmisc' The following object(s) are masked from package:survival : untangle.specials 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/14g3c1258121896.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/14g3c1258121896.ps tmp/14g3c1258121896.png") > > > proc.time() user system elapsed 0.556 0.202 0.674