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(0.87405,0.878,0.8804,0.8784,NA,NA,0.88135,0.8815,0.8751,0.8747,0.872,NA,NA,0.8735,0.87365,0.8793,0.87575,0.8739,NA,NA,0.879,0.8869,0.8897,0.8905,0.9003,NA,NA,0.9066,0.9047,0.8994,0.91065,0.91875,NA,NA,0.92265,0.9118,0.9093,0.91085,0.9172,NA,NA,0.9171,0.92605,0.9249,0.92,0.92285,NA,NA,0.9333,0.9408,0.93025,0.9147,0.91175,NA,NA,0.9143,0.9117,0.9001,0.9053,0.9172) > x <- c(1.3683,1.3623,1.3563,1.3518,1.3494,1.3612,1.369,1.3771,1.3972,1.401,1.3908,1.3901,1.3856,1.4098,1.422,1.4238,1.4207,1.4095,1.4177,1.3866,1.3959,1.4102,1.3969,1.4004,1.385,1.389,1.384,1.392,1.3932,1.3858,1.3978,1.4029,1.394,1.4096,1.4058,1.4134,1.4096,1.4049,1.4009,1.3897,1.4019,1.3901,1.399,1.3901,1.3975,1.3991,1.4089,1.413,1.409,1.4217,1.4223,1.4191,1.4229,1.4227,1.4269,1.4229,1.4104,1.4053,1.4138,1.4303,1.4384) > par5 = 'pond/euro koers' > par4 = 'dollar/euro koers' > par3 = 'TRUE' > par2 = 'blue' > par1 = 'red' > 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)) Warning message: In cbind(x, y) : number of rows of result is not a multiple of vector length (arg 2) > names(z) <- list(par4,par5) > postscript(file="/var/www/html/freestat/rcomp/tmp/1z3zi1258047440.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/1z3zi1258047440.ps tmp/1z3zi1258047440.png") > > > proc.time() user system elapsed 0.978 0.228 1.111