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(131.05,119.47,120.22,119.13,121.16,122.81,124.21,122.43,119.33,121.97,118.96,116.33,114.74,112.22,111.88,113.99,117.8,116.74,113.09,112.94,113.04,116.46,121.33,115.99,116.58,117.98,121.54,127.45,116.88,109.81,110.96,110.41,114.9,115.3,116.4,116.93,115.83,115.72,114.63,119.4,125.1,129.73,127.31,129.43,137.73,139.95,146.16,142.18,140.21,133.9,137.49,145.88,153.86,151.88,160.5,166.51,166.23,169.35,170.33,162.31,156.53) > x <- c(120.46,117.84,122.56,120.32,126.39,132.83,127.19,120.82,118.9,122.75,115.41,111.96,110.52,111.3,112.81,114.42,121.32,119.49,117.23,118.08,118.57,119.99,119.75,116.66,115.87,118.98,121.74,121.53,118.01,113.77,114.73,115.76,120.41,122.34,118.99,118.74,118.61,118.62,119.91,122.11,124.95,132.71,131.68,133.1,133.98,133.45,137.98,134.1,128.06,126.7,132.5,134.92,142.98,141.79,144.7,152.2,154.44,161.73,159.42,149.23,148.5) > par5 = 'Diesel' > par4 = 'Eurosuperbenzine' > 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/1unpl1258039657.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/1unpl1258039657.ps tmp/1unpl1258039657.png") > > > proc.time() user system elapsed 0.586 0.166 3.484